X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88946c3e8b3298cf07e9baadbf36cdc06cf789f9..2df389c97e52437f964e4b4ee22c8493a9cc7fbc:/app/helpers/social_share_button_helper.rb diff --git a/app/helpers/social_share_button_helper.rb b/app/helpers/social_share_button_helper.rb index 90618a924..da49347c3 100644 --- a/app/helpers/social_share_button_helper.rb +++ b/app/helpers/social_share_button_helper.rb @@ -16,7 +16,7 @@ module SocialShareButtonHelper tag.div( :class => "social-share-button d-flex gap-1 align-items-end flex-wrap mb-3" ) do - SOCIAL_SHARE_CONFIG.map do |site, icon| + safe_join(SOCIAL_SHARE_CONFIG.map do |site, icon| link_options = { :rel => "nofollow", :class => "ssb-icon rounded-circle", @@ -27,7 +27,7 @@ module SocialShareButtonHelper link_to generate_share_url(site, title, url), link_options do image_tag(icon, :alt => I18n.t("application.share.#{site}.alt"), :size => 28) end - end.join.html_safe + end, "\n") end end