Add `SocialHelper::BlueskyMethods`
This commit is contained in:
parent
f98fbe261c
commit
50097d629e
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module SocialHelper
|
||||
include SocialHelper::BlueskyMethods
|
||||
include SocialHelper::TwitterMethods
|
||||
include SocialHelper::TumblrMethods
|
||||
include SocialHelper::TelegramMethods
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue