summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-06-11 21:53:18 +0200
committerGravatar default2023-06-11 21:53:18 +0200
commitf1294bd3d44cbe73d89118a8b46c1b9c33de248d (patch)
tree1847cc9986f20871080b04ede0a6c9752561884a
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-f1294bd3d44cbe73d89118a8b46c1b9c33de248d.tar.gz
snac2-f1294bd3d44cbe73d89118a8b46c1b9c33de248d.tar.xz
snac2-f1294bd3d44cbe73d89118a8b46c1b9c33de248d.zip
Added a comment about Announces of non-Notes.
-rw-r--r--activitypub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 3d28451..005f6e6 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1497,6 +1497,11 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1497 1497
1498 timeline_request(snac, &object, &wrk); 1498 timeline_request(snac, &object, &wrk);
1499 1499
1500 /* Note: implementations like lemmy send announces about objects
1501 that are not of the 'Note' type; these objects are not stored,
1502 so the following object_get() will fail even if the object
1503 was correctly requested */
1504
1500 if (valid_status(object_get(object, &a_msg))) { 1505 if (valid_status(object_get(object, &a_msg))) {
1501 char *who = xs_dict_get(a_msg, "attributedTo"); 1506 char *who = xs_dict_get(a_msg, "attributedTo");
1502 1507