summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-05-24 10:46:54 +0200
committerGravatar default2023-05-24 10:46:54 +0200
commit50fe76edd257f45dc45f999b265a822e05556564 (patch)
tree818206d8763fddaa8369283dff15318d2eb344bb
parentShow a ballot box emoji in the score if the enttry it's a poll. (diff)
downloadsnac2-50fe76edd257f45dc45f999b265a822e05556564.tar.gz
snac2-50fe76edd257f45dc45f999b265a822e05556564.tar.xz
snac2-50fe76edd257f45dc45f999b265a822e05556564.zip
Call timeline_touch() on successful 'Update' messages.
-rw-r--r--activitypub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 8a91f6a..2b73f56 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1217,6 +1217,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1217 if (strcmp(type, "Update") == 0) { 1217 if (strcmp(type, "Update") == 0) {
1218 if (strcmp(utype, "Person") == 0) { 1218 if (strcmp(utype, "Person") == 0) {
1219 actor_add(actor, xs_dict_get(msg, "object")); 1219 actor_add(actor, xs_dict_get(msg, "object"));
1220 timeline_touch(snac);
1220 1221
1221 snac_log(snac, xs_fmt("updated actor %s", actor)); 1222 snac_log(snac, xs_fmt("updated actor %s", actor));
1222 } 1223 }
@@ -1225,6 +1226,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1225 char *id = xs_dict_get(object, "id"); 1226 char *id = xs_dict_get(object, "id");
1226 1227
1227 object_add_ow(id, object); 1228 object_add_ow(id, object);
1229 timeline_touch(snac);
1228 1230
1229 snac_log(snac, xs_fmt("updated post %s", id)); 1231 snac_log(snac, xs_fmt("updated post %s", id));
1230 } 1232 }
@@ -1233,6 +1235,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1233 char *id = xs_dict_get(object, "id"); 1235 char *id = xs_dict_get(object, "id");
1234 1236
1235 object_add_ow(id, object); 1237 object_add_ow(id, object);
1238 timeline_touch(snac);
1236 1239
1237 snac_log(snac, xs_fmt("updated poll %s", id)); 1240 snac_log(snac, xs_fmt("updated poll %s", id));
1238 } 1241 }