commit 2edbb75

default  ·  2023-09-15 21:18:27 +0000 UTC
parent 4d4852b
Also accept Update activities for Page and Article.
1 files changed,  +4, -2
+4, -2
 1@@ -1648,14 +1648,16 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
 2     }
 3     else
 4     if (strcmp(type, "Update") == 0) { /** **/
 5-        if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) {
 6+        if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) { /** **/
 7             actor_add(actor, xs_dict_get(msg, "object"));
 8             timeline_touch(snac);
 9 
10             snac_log(snac, xs_fmt("updated actor %s", actor));
11         }
12         else
13-        if (strcmp(utype, "Note") == 0) { /** **/
14+        if (strcmp(utype, "Note") == 0 || /** **/
15+            strcmp(utype, "Page") == 0 || /** **/
16+            strcmp(utype, "Article") == 0) { /** **/
17             const char *id = xs_dict_get(object, "id");
18 
19             object_add_ow(id, object);