I’ve noticed that some servers send “context” along with activities (Create/Note
, etc.), while others also use a “conversation” attribute. In the spec, I don’t see the conversation attribute, although I may just not be seeing it. Can anyone shed some light on how to use inReplyTo, context, and conversation to handle threading and replies correctly and effectively?
Friendica direct message has context set, inReplyTo null (first message in a conversation), and no conversation.
{
"id": "https://friendica.feneas.org/objects/76158462-185e-74d5-0709-2a3993136982",
"to": [
"https://tavern.ngrok.io/users/nick"
],
"url": "https://friendica.feneas.org/objects/76158462-185e-74d5-0709-2a3993136982",
"type": "Note",
"content": "Whats up!",
"context": "nick@tavern.ngrok.io:76158462-905e-74d5-0709-2d0876673840#context",
"summary": "Testing",
"inReplyTo": null,
"published": "2020-03-20T14:36:55Z",
"attributedTo": "https://friendica.feneas.org/profile/ngerakines",
}
Pixelfed sets inReplyTo to null, but includes neither context nor conversation.
{
"cc": [
"https://pixelfed.social/users/NHonigdachs/followers"
],
"id": "https://pixelfed.social/p/NHonigdachs/145603388422361088",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"url": "https://pixelfed.social/p/NHonigdachs/145603388422361088",
"type": "Note",
"content": "",
"summary": null,
"inReplyTo": null,
"published": "2020-03-17T18:55:52+00:00",
"attributedTo": "https://pixelfed.social/users/NHonigdachs",
}
Mastodon sets inReplyTo to null, includes conversation, but doesn’t include context.
{
"cc": [
"https://mastodon.social/users/ngerakines/followers"
],
"id": "https://mastodon.social/users/ngerakines/statuses/103841255374530007",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Note",
"content": "<p>Hedgehogs are super cute.</p>",
"summary": null,
"inReplyTo": null,
"published": "2020-03-18T00:36:51Z",
"attributedTo": "https://mastodon.social/users/ngerakines",
"conversation": "tag:mastodon.social,2020-03-18:objectId=160438886:objectType=Conversation",
}