I have been trying to figure out how to send a DM using #ActivityPub but I have still not found any clear instructions on what the message should contain for it to be a proper DM.
-
I have been trying to figure out how to send a DM using #ActivityPub but I have still not found any clear instructions on what the message should contain for it to be a proper DM.
-
I believe it's a list of actors in the to field and these actors being included as a mention in tags.
But not 100% certain. It's all very awkward and very specific to how one writes one's front end code. I would expect that if someone were to write a messenger app for the Fediverse, e.g. something to talk with other people using DMs, its behavior would be different from the current implementations.
-
@[email protected] I think I tried something like that already. A single actor in the "to" field and had the mention tag. Maybe you have to have the user atting (@) in the content? I see some other engines than Mastodon use other fields as well.
Hmm, is there a way in Mastodon to see the ActivityPub request json directly maybe? So you could compare a public message to a DM. -
My bot (currently running) @[email protected], actor uri https://dev.bovine.social/actor/HoX3ydDZpDUnTAwA2eqDeg replies with the json of the direct message (as a direct message).
This might be what you want. It is not always online, e.g. probably not tomorrow. I'm writing it while developing.
-
-
DMs are AFAIK a Mastodon feature, so I'm of course talking about Mastodon.
-
-
-
@[email protected] @[email protected] NodeBB sends DMs. A mention is not required, just the addressing.
Mastodon conflating addressing with notifications is annoying and is the reason mention spam exists.
-
Please upvote https://github.com/mastodon/mastodon/issues/32242 (funny detail: the "bug" label was removed)
-
@[email protected] looks like the label was removed because GitHub introduced issue types.
-