diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index d6ad191..6971492 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1692,10 +1692,14 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) | |||
| 1692 | if (xs_match(utype, "Note|Page|Article")) { /** **/ | 1692 | if (xs_match(utype, "Note|Page|Article")) { /** **/ |
| 1693 | const char *id = xs_dict_get(object, "id"); | 1693 | const char *id = xs_dict_get(object, "id"); |
| 1694 | 1694 | ||
| 1695 | object_add_ow(id, object); | 1695 | if (object_here(id)) { |
| 1696 | timeline_touch(snac); | 1696 | object_add_ow(id, object); |
| 1697 | timeline_touch(snac); | ||
| 1697 | 1698 | ||
| 1698 | snac_log(snac, xs_fmt("updated post %s", id)); | 1699 | snac_log(snac, xs_fmt("updated post %s", id)); |
| 1700 | } | ||
| 1701 | else | ||
| 1702 | snac_log(snac, xs_fmt("dropped update for unknown post %s", id)); | ||
| 1699 | } | 1703 | } |
| 1700 | else | 1704 | else |
| 1701 | if (strcmp(utype, "Question") == 0) { /** **/ | 1705 | if (strcmp(utype, "Question") == 0) { /** **/ |