commit 50fe76e
default
·
2023-05-24 08:46:54 +0000 UTC
parent 4f0ab18
Call timeline_touch() on successful 'Update' messages.
1 files changed,
+3,
-0
+3,
-0
1@@ -1217,6 +1217,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
2 if (strcmp(type, "Update") == 0) {
3 if (strcmp(utype, "Person") == 0) {
4 actor_add(actor, xs_dict_get(msg, "object"));
5+ timeline_touch(snac);
6
7 snac_log(snac, xs_fmt("updated actor %s", actor));
8 }
9@@ -1225,6 +1226,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
10 char *id = xs_dict_get(object, "id");
11
12 object_add_ow(id, object);
13+ timeline_touch(snac);
14
15 snac_log(snac, xs_fmt("updated post %s", id));
16 }
17@@ -1233,6 +1235,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
18 char *id = xs_dict_get(object, "id");
19
20 object_add_ow(id, object);
21+ timeline_touch(snac);
22
23 snac_log(snac, xs_fmt("updated poll %s", id));
24 }