commit f1294bd

default  ·  2023-06-11 19:53:18 +0000 UTC
parent 7bbd47e
Added a comment about Announces of non-Notes.
1 files changed,  +5, -0
+5, -0
 1@@ -1497,6 +1497,11 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
 2 
 3         timeline_request(snac, &object, &wrk);
 4 
 5+        /* Note: implementations like lemmy send announces about objects
 6+           that are not of the 'Note' type; these objects are not stored,
 7+           so the following object_get() will fail even if the object
 8+           was correctly requested */
 9+
10         if (valid_status(object_get(object, &a_msg))) {
11             char *who = xs_dict_get(a_msg, "attributedTo");
12