-
Notifications
You must be signed in to change notification settings - Fork 0
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
Derive "mentions" (for other accounts) from post message body #3
Comments
First step, extracting addresses from text: #4 |
This is working except for the fact that For example, this message is not handled as expected:
However this message is working (as in: clicking on
Unless I am missing something both messages honour the syntax described here: https://www.w3.org/TR/activitystreams-vocabulary/#h-microsyntaxes Which suggests that the post itself is correct but maybe the client (Ivory) is fetching the profile and comparing it to the mention? For example:
But then if I do this:
The
Mentions for posts are added here: https://github.com/sfomuseum/go-activitypub/blob/main/post.go#L59-L94 And validated again, before delivery, here: https://github.com/sfomuseum/go-activitypub/blob/main/app/post/deliver/deliver.go#L180-L200 |
Mastodon's mentions in the HTML specifically look like:
Perhaps that's a factor there? The href's also don't match:
vs
|
@ThisIsMissEm Thanks for the pointers. I guess the thing I don't understand is why the second message with a mention for To confuse matters further, I noticed that this post which contains both a mention and a separate link behaves unexpectedly: https://mastodon.social/deck/@[email protected]/112316250991932010 Specifically, the not-a-mention link opens the account profile "inline" in Mastodon rather than opening the object page itself while the Currently the mention blocks use the
|
That might be it? I'm honestly not sure. Also, I'd only recommend testing this in mastodon's web UI, not in Ivory (since it's closed source and they might be doing something "special") |
I haven't fully read everything here, but it took me a while to get mentions to register in Mastodon too. Here are the conclusions that are currently working for me: snarfed/bridgy-fed#493 (comment) |
Also here's my code for extracting HTML links from content into AS1 mention tags. Converting those from AS1 to AS2 is pretty trivial, they just go into |
I continue to be stumped. I can see that Mastodon is treating some of the mentions as "unhandled-link" (s) while others load their "profile" tab as expected. ![]() Basically the problem seems to be any account from It does not appear as though the
|
Looking through the Mastodon source code I can see this:
It appears to be comparing the So, I guess the next step is ensure that all the |
It might be an idea for you to contribute your knowledge around mentions to the ActivityPub Primer, perhaps in the "Addressing" section? https://www.w3.org/wiki/ActivityPub/Primer/Addressing (Anyone with a W3C account (free) can participate in that wiki) |
For example:
https://github.com/sfomuseum/go-activitypub/blob/main/app/post/create/create.go#L116-L126
The text was updated successfully, but these errors were encountered: