Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rel=me to staff members' own website links #552

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wiktor-k
Copy link
Member

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 😅

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.

The `rel=me` is used to indicate profile equivalence [0] and is used
by Mastodon's Link Verification [1]. 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.

[0]: https://microformats.org/wiki/rel-me
[1]: https://docs.joinmastodon.org/user/profile/#verification
@jelly
Copy link
Member

jelly commented Feb 20, 2025

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

@wiktor-k
Copy link
Member Author

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 😅) as it would require additional DB field.

(I hope I got you right, if not, happy to answer any questions). 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants