-
Notifications
You must be signed in to change notification settings - Fork 55
Include the Mastodon URL in a link element on user page (#2046) #352
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
Conversation
Thanks for this PR, it's nice. I've added a comment on the issue report: https://linuxfr.org/suivi/faire-valider-sa-page-perso-linuxfr-org-sur-mastodon#comment-1910962 For the part concerning this pull request, it would be nice to add these two things: First a string after the Mastodon input saying something like below to discover this functionality.
Second a link to the user Mastodon account on each user content as there's already this functionality for personal website and xmpp account:
It would be nice to discover new Mastodon account to follow. See this code for the last part: linuxfr.org/app/helpers/node_helper.rb Lines 106 to 116 in 2e62220
|
Thanx, I added some comments just below yours: https://linuxfr.org/suivi/faire-valider-sa-page-perso-linuxfr-org-sur-mastodon#comment-1910974
May I suggest a little modification at the end :
|
I didn't do it on purpose, but I suppose it can be added if you insist. For the record I'm not sure adding all the links to someone on each comment is the way to go (I suppose having a proper profile page would be better IMO) because if someone adds for e.g. Matrix or Signal support now that XMPP is pretty much dead, will you add these too? Knowing that removing a link (e.g. XMPP) without having people complaining will be pretty much impossible 😉 |
Obviously I didn't test the actual verification process... |
d557333
to
d169f6e
Compare
I've checked it with my new mastodon account. It seems to work well. I've a glitch which hide it after a little moment on my Mastodon instance, but I'm sure it's my fresh Mastodon install which is missing some feature, as it's my first Mastodon install. |
These were using "inline code" syntax rather than code block. Code blocks look better and make the lines easier to cut and paste when editing the file.
d169f6e
to
dd92167
Compare
I got inspired by @Oumph's latest merged commit and added statistics for Mastodon domains while I was at it. This commit series talks about Mastodon all over the place but in truth some of it would work with other ActivityPub software (Pleroma comes to mind, but there are lots of others). Although as far as I know the verification process is Mastodon-specific, maybe the wording will need to be adapted if we show that URI in the web interface. I honestly have no idea what the proper word is / will be when the dust settles. |
256c49d
to
7b60335
Compare
We add a `<link rel="me" href="https://mastodon.example/@me">` URL in the `<head>` when the user configures their Mastodon URL. We only accept URLs (not `@[email protected]`-style identifiers) for the sake of simplicity, because it's both the most universal format and the one required for the "verification" feature. A placeholder is used to convey that fact. For the record, at this time Mastodon requires a `<a>` or `<link>` element with `rel="me"` and an `href` attribute pointing to the `https://` URL of the Mastodon account. I opted for the `<link>` element because it didn't involve modifying the web interface any further. See https://docs.joinmastodon.org/user/profile/#verification for details. https://linuxfr.org/suivi/faire-valider-sa-page-perso-linuxfr-org-sur-mastodon
We show the Mastodon URL alongside the website URL and XMPP address. This crowds the user box even more and I think LinuxFR should switch to using a proper profile page instead. This was requested by Adrien Dorsaz.
This is mostly cut and paste from commit 3ac001b.
7b60335
to
0b3b099
Compare
In the same spirit as #355 I updated this MR to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the improvements !
@Oumph can merge and publish 👍
PS: I don't worry about the fact we currently only allow https link for Mastodon profile (instead of the user name), because the Mastodon documentation enforces the use the https profile link to verify the profile:
the href attribute on one of those elements is equal to the URL for your Mastodon profile
Merci :) |
We add a
<link rel="me" href="https://mastodon.example/@me">
URL in the<head>
when the user configures their Mastodon URL.We only accept URLs (not
@[email protected]
-style identifiers) for the sake of simplicity, because it's both the most universal format and the one required for the "verification" feature. A placeholder is used to convey that fact.For the record, at this time Mastodon requires a
<a>
or<link>
element withrel="me"
and anhref
attribute pointing to thehttps://
URL of the Mastodon account. I opted for the<link>
element because it didn't involve modifying the web interface any further. See https://docs.joinmastodon.org/user/profile/#verification for details.https://linuxfr.org/suivi/faire-valider-sa-page-perso-linuxfr-org-sur-mastodon
I also fixed the formatting of command lines in Docker.md while I was at it.
Updated options
<head>