diff options
author | default <nobody@localhost> | 2023-06-11 21:53:18 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-11 21:53:18 +0200 |
commit | f1294bd3d44cbe73d89118a8b46c1b9c33de248d (patch) | |
tree | 1847cc9986f20871080b04ede0a6c9752561884a | |
parent | 7bbd47e4cc76cf699c026d69c54fffc2bddd59d8 (diff) |
Added a comment about Announces of non-Notes.
-rw-r--r-- | activitypub.c | 5 |
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) timeline_request(snac, &object, &wrk); + /* Note: implementations like lemmy send announces about objects + that are not of the 'Note' type; these objects are not stored, + so the following object_get() will fail even if the object + was correctly requested */ + if (valid_status(object_get(object, &a_msg))) { char *who = xs_dict_get(a_msg, "attributedTo"); |