sagemath / website

this is the code for the sagemath.org website
39 stars 182 forks source link

adding Mastodon social media account #456

Closed dimpase closed 1 year ago

dimpase commented 1 year ago

I haven't implemented "like" for it - not tried.

dimpase commented 1 year ago

PS. I'm setting up this account - ping me if you want access to it...

dimpase commented 1 year ago

AFAIK, Mastodon does not do the silly "like" account things - a meaningful action w.r.t. to an account is to subscribe.

haraldschilly commented 1 year ago

Ok, let's see where this goes. I'm not planning to be active, but I registered and my application is under review.

dimpase commented 1 year ago

that's not deployed, right? I'd like to see if <a rel="me" href="https://mathstodon.xyz/@sagemath">{{ sage }} Mastodon page</a> gets the "green tick" of verified account.

haraldschilly commented 1 year ago

@dimpase no, not yet, I can ping you here if it is live

haraldschilly commented 1 year ago

@dimpase ok, deployed now. I don't know what you mean by such a "green tick", but the link is now here: https://www.sagemath.org/library-press.html

dimpase commented 1 year ago

by a green tick, I mean how URLs look on e.g. https://mathstodon.xyz/@dimpase

dimpase commented 1 year ago

I have working <a rel="me" href="[https://mathstodon.xyz/@dimpase](view-source:https://mathstodon.xyz/@dimpase)">Mastodon</a></li> on https://users.ox.ac.uk/~coml0531/

Mastodon says:

You can verify yourself as the owner of the links in your profile metadata. For that, the linked website must contain a link back to your Mastodon profile. The link back must have a rel="me" attribute. The text content of the link does not matter. 

so something seems to be blocking this authentication

haraldschilly commented 1 year ago

@dimpase I'm not familiar with any of that, but this page says the profile has to link to a page, which in turn links back. I don't see a link to the sagemath website.

Also, I can add a "<link ... >" attribute to the header, then it doesn't matter to which page the profile links to.

haraldschilly commented 1 year ago

ok, this change https://github.com/sagemath/website/commit/e6a4f4708bfae008b4446501c42ae2a0135c6f10 is deployed. And besides that link on the profile, maybe it takes a while to scan these pages and update the database? I wouldn't be surprised if this verification does not happen in an instant.

dimpase commented 1 year ago

I don't see a link to the sagemath website.

On view-source:https://mathstodon.xyz/@sagemath there is <link href='https://www.sagemath.org' rel='me' type='text/html'> (it's a part of "Profile Metadata")

haraldschilly commented 1 year ago

OK, got it. Well, earlier that rel="me" link was only on the library-press page, but now it is also in the header and on each page. In particular: view-source:https://www.sagemath.org/<link href="https://mathstodon.xyz/@sagemath" rel="me" />

So, with that, I think we can close this ticket and blame that server to either have a bug or it takes some time to recognize this. :man_shrugging:

dimpase commented 1 year ago

Oh, right, certainly I can imagine that the location of the link on the website does matter, and should match URL at Mastodon

On Mon, 20 Feb 2023, 15:32 Harald Schilly, @.***> wrote:

OK, got it. Well, earlier that rel="me" link was only on the library-press page, but now it is also in the header and on each page. In particular: view-source:https://www.sagemath.org/

So, with that, I think we can close this ticket and blame that server to either have a bug or it takes some time to recognize this. 🤷‍♂️

— Reply to this email directly, view it on GitHub https://github.com/sagemath/website/pull/456#issuecomment-1437200570, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXYHHNAV4OY6F2DUTHTR3WYOFA7ANCNFSM6AAAAAAVA4PKWI . You are receiving this because you were mentioned.Message ID: @.***>

dimpase commented 1 year ago

OK, I fixed this by changing the rel URL on Mastodon side to https://www.sagemath.org/index.html. All good now.