mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:39:53 +01:00
Add SocialHelper::BlueskyMethods
This commit is contained in:
parent
f98fbe261c
commit
50097d629e
2 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module SocialHelper
|
||||
include SocialHelper::BlueskyMethods
|
||||
include SocialHelper::TwitterMethods
|
||||
include SocialHelper::TumblrMethods
|
||||
include SocialHelper::TelegramMethods
|
||||
|
|
9
app/helpers/social_helper/bluesky_methods.rb
Normal file
9
app/helpers/social_helper/bluesky_methods.rb
Normal 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
|
Loading…
Reference in a new issue