[openstreetmap/openstreetmap-website] Pass on 'rel="me"' attribute for Mastodon Links (Issue #3859)
Pieter Vander Vennet
notifications at github.com
Thu Dec 29 17:41:50 UTC 2022
I had an _extremely_ quick look to the meaning of the various 'relation'-values. IMHO, using `rel="me noopener nofollow noreferrer"` would be fine, even though the combination of `me` and `nofollow` seem a bit contradictory. The `nofollow` signals that _OpenStreetMap.org does not endorse the link_ while the `me` signals that _this user has this mastodon account_ (but I'm not an expert in these matters. But maybe I should add a few of those tags on user-generated links in MapComplete too).
I'm not familiar with Ruby; but it seems that [this](https://github.com/rgrove/sanitize#custom-configuration) library is used for sanitation, which uses a whitelist of what is allowed. As `rel`-tags are _not_ in this configuration; they are dropped before adding the `noreferer nofollow noopener` again.
I do think that adding `:attributes => {"a" => {"rel" => "me"} }` might just work to keep the `rel=me` intact.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3859#issuecomment-1367487064
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3859/1367487064 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221229/bbb31dc2/attachment.htm>
More information about the rails-dev
mailing list