archweb icon indicating copy to clipboard operation
archweb copied to clipboard

Add `rel=me` to staff members' own website links

Open wiktor-k opened this issue 10 months ago • 2 comments

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:

  1. Adding the link to Mastodon on archweb:

2025-02-17-13-56-16

  1. Adding a back-link to the staff site on Mastodon:

2025-02-17-13-56-24

  1. There's no step 3. It just works and is green and green == good.

CC: @anthraxx with whom I've discussed that at FOSDEM.

wiktor-k avatar Feb 17 '25 12:02 wiktor-k

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">?

jelly avatar Feb 20 '25 08:02 jelly

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:

wiktor-k avatar Feb 20 '25 12:02 wiktor-k

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: ).

wiktor-k avatar Jul 15 '25 11:07 wiktor-k