Add SocialHelper::BlueskyMethods

This commit is contained in:
Andreas Nedbal 2024-03-01 20:47:38 +01:00 committed by Andreas Nedbal
parent f98fbe261c
commit 50097d629e
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true
module SocialHelper
include SocialHelper::BlueskyMethods
include SocialHelper::TwitterMethods
include SocialHelper::TumblrMethods
include SocialHelper::TelegramMethods

View file

@ -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