retrospring/app/helpers/social_helper/bluesky_methods.rb
2024-03-01 21:14:59 +01:00

9 lines
204 B
Ruby

# 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