[openstreetmap/openstreetmap-website] Add social sharing functionality (PR #4985)

Tom Hughes notifications at github.com
Wed Dec 18 14:16:44 UTC 2024


@tomhughes commented on this pull request.



> @@ -75,4 +76,32 @@ def render_flash(flash)
   rescue StandardError
     flash.inspect if Rails.env.development?
   end
+
+  # Generates a set of social share buttons based on the specified options.
+  def render_social_share_buttons(opts = {})
+    sites = opts.fetch(:allow_sites, [])

Well obviously we can come up with ways to use it, like adding a configuration option to control which ones was enabled. But given that no such thing currently exists I was wondering we it had been implemented - is there some plan to make use of it in the future?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4985#discussion_r1890313091
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4985/review/2511970885 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241218/c02263c2/attachment.htm>


More information about the rails-dev mailing list