Mastodon link improvements on User Profile page
Problem
I have noticed two potential improvements that could be done to the Mastodon link that GitLab now supports on the Profile page.
First is simple: the a
tag should have a rel="me"
to show the Mastodon instance that this page is verified.
Implementation guide
Proposed implementation: Given the safety interstitial page we have in the Mastodon link, we can use a <link rel="me" href="(...)">
in the <head>
pointing to the mastodon profile. See thread below: #433391 (comment 1716104852)
The second is perhaps more complicated. My Mastodon username is @krejcar25@blep.cz even if we use the social.blep.cz for the actual Mastodon instance. This is done as described in the docs. However GitLab does not check for this. When I set the Mastodon field in GitLab to @krejcar25@blep.cz as I should, the link created is to https://blep.cz/@krejcar25. This of course does not work.
The address https://blep.cz/.well-known/webfinger should be checked, which redirects to the correct address of https://social.blep.cz/.well-known/webfinger. This address should then be used for the link in displayed Profile.
I will maintain to have the Mastodon field set "incorrectly" in GitLab for now for testing purposes.