diff options
author | default <nobody@localhost> | 2023-05-24 10:46:54 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-24 10:46:54 +0200 |
commit | 50fe76edd257f45dc45f999b265a822e05556564 (patch) | |
tree | 818206d8763fddaa8369283dff15318d2eb344bb /activitypub.c | |
parent | 4f0ab18f1c7b2a8e31660b49904dc2fa2ba90eba (diff) |
Call timeline_touch() on successful 'Update' messages.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 3 |
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) if (strcmp(type, "Update") == 0) { if (strcmp(utype, "Person") == 0) { actor_add(actor, xs_dict_get(msg, "object")); + timeline_touch(snac); snac_log(snac, xs_fmt("updated actor %s", actor)); } @@ -1225,6 +1226,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) char *id = xs_dict_get(object, "id"); object_add_ow(id, object); + timeline_touch(snac); snac_log(snac, xs_fmt("updated post %s", id)); } @@ -1233,6 +1235,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) char *id = xs_dict_get(object, "id"); object_add_ow(id, object); + timeline_touch(snac); snac_log(snac, xs_fmt("updated poll %s", id)); } |