]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #5411 from tomhughes/bluesky-sharing
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 18 Dec 2024 15:06:18 +0000 (15:06 +0000)
committerGitHub <noreply@github.com>
Wed, 18 Dec 2024 15:06:18 +0000 (15:06 +0000)
Add Bluesky to social sharing buttons

lib/social_share_button_helper.rb

index b45c7933a54dc40714626cbb4ace19530625c309..9dac9a6c8a08e917d8348540375f4c951449930c 100644 (file)
@@ -40,7 +40,7 @@ module SocialShareButtonHelper
     when :linkedin
       "https://www.linkedin.com/sharing/share-offsite/?url=#{URI.encode_www_form_component(params[:url])}"
     when :facebook
-      "https://www.facebook.com/sharer/sharer.php?u=#{URI.encode_www_form_component('params[:url]')}&t=#{URI.encode_www_form_component(params[:title])}"
+      "https://www.facebook.com/sharer/sharer.php?u=#{URI.encode_www_form_component(params[:url])}&t=#{URI.encode_www_form_component(params[:title])}"
     when :mastodon
       "https://mastodonshare.com/?text=#{URI.encode_www_form_component(params[:title])}&url=#{URI.encode_www_form_component(params[:url])}"
     when :telegram