Add `rel=me` to staff members' own website links
The rel=me is used to indicate profile equivalence and is used by Mastodon's Link Verification. If a staff member puts a link to their Fediverse account in the "website" field and cross-links the staff page on their Fediverse account (the link may include #username anchor) then the software will display the link as "green" thus giving others an indication that this person is indeed an Arch staff member.
Note that I have not ran Archweb locally with this change :sweat_smile:
I mock-up of how it should look like:
- Adding the link to Mastodon on archweb:
- Adding a back-link to the staff site on Mastodon:
- There's no step 3. It just works and is green and green == good.
CC: @anthraxx with whom I've discussed that at FOSDEM.
Shouldn't the link be a full link with your mastadon account like <link rel="me" href="https://fosstodon.org/@archlinux" title="Arch Linux Mastodon">?
Shouldn't the link be a full link with your mastadon account like
<link rel="me" href="https://fosstodon.org/@archlinux" title="Arch Linux Mastodon">?
a hrefs work the same way as links with this use-case:
<a href="https://social.example.com/@username" rel="me">Follow me on Mastodon!</a>
(Source)
The same thing on GitHub (random example that works: https://github.com/Foxboron) has the following markup: <a rel="nofollow me" class="Link--primary" style="overflow-wrap: anywhere" href="https://chaos.social/@Foxboron">@[email protected]</a> and this is enough for Mastodon to "green" the link at: https://chaos.social/@Foxboron
I guess the better approach would be to introduce "social link" but this is far more complex (at least for me :sweat_smile:) as it would require additional DB field.
(I hope I got you right, if not, happy to answer any questions). :wave:
Closing as it was superseded https://github.com/archlinux/archweb/pull/566 (but I still think this would be a good idea to merge and without any downsides :smiling_face_with_tear: ).