Open snarfed opened 11 months ago
This isn't really mentioned in any of the Community Reports currently produced by the SocialWG either, right? Maybe another "glue" report needed?
Maybe! This is probably AS2, including audience targeting, not AP per se, but still.
A bit more background: https://github.com/snarfed/bridgy-fed/issues/887
It may be a bit small for a report on its own. We could combine it with other semir-standardized AS2-centric data model questions like quote posts and profile links and maybe groups? I dunno.
In https://www.w3.org/TR/activitystreams-vocabulary/#h-microsyntaxes, it says that to receive notifications, the actor should be in the to
primary audience, while a mere mention in tag
should not cause a notification. But I think you are saying that the actor should get notification even in the second case?
I don't know that existing projects follow the AS2 spec very closely (if at all) for UX decisions like notifications. Mastodon, for example, needs a Mention
tag, but doesn't need that user in either to
or cc
: https://github.com/snarfed/bridgy-fed/issues/493#issuecomment-1897843483 . to
/cc
are more for visibility than notifications: https://docs.joinmastodon.org/spec/activitypub/#Mention
If existing projects notify some actors even if the spec doesn't require it -- and what the spec says sounds reasonable to me -- I don't think we need to test going beyond the spec. If you agree, please close.
The main point here is just to test mentions. Looking for a notification was just the common user-facing way I thought of to check that the mention was handled, like in #26 that search was a common user-facing way to check that a hashtag was handled.
I don't care too much how we check mentions and hashtags. I think it'd be useful to test creating them, which was my goal with both this and #26, but I'll defer to you!
Fair enough. I'm actually not clear what the mention tag is supposed to do. If it isn't required to trigger a notification, having it or not having it attached makes which difference where? It's not like applications use it to create a searchable "mention index" or something ... although they certainly could.
Beyond notifications, another use is to link to the mentioned user on the local instance instead of their home instance. For example, try clicking on @littlealex
in https://mastodon.social/@astridpoot/111862989549373384, then open that post in a different Mastodon instance and try again.
Is an instance under any obligation to create a mention tag if somebody types @snarfed? If not, I'm not sure what we can test, other than that any such structure, should it be generated, is syntactically valid. And maybe that whatever is in the mention tag is actually mentioned in the text...
Sure. There's probably more that's possible as soon as you're ready for interactive tests, but at long as you're working purely at the AP S2S level, then yes, not much to do here yet.
We have something like this working, this issue will probably get broken into several shortly.
Split off #152.
Deliver a
Create
of aNote
with atag
with typeMention
andhref
pointing to a user's actor id. Check that that user receives a notification of theNote
. (This is not specified in AP itself.)