diff --git a/app/helpers/social_helper.rb b/app/helpers/social_helper.rb index c4d8b329..e248da85 100644 --- a/app/helpers/social_helper.rb +++ b/app/helpers/social_helper.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true module SocialHelper + include SocialHelper::BlueskyMethods include SocialHelper::TwitterMethods include SocialHelper::TumblrMethods include SocialHelper::TelegramMethods diff --git a/app/helpers/social_helper/bluesky_methods.rb b/app/helpers/social_helper/bluesky_methods.rb new file mode 100644 index 00000000..1565ae59 --- /dev/null +++ b/app/helpers/social_helper/bluesky_methods.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require "cgi" + +module SocialHelper::BlueskyMethods + def bluesky_share_url(answer) + "https://bsky.app/intent/compose?text=#{CGI.escape(prepare_tweet(answer))}" + end +end