summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 732aaac..130c283 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1526,7 +1526,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1526 if (xs_type(obj_id) == XSTYPE_DICT) 1526 if (xs_type(obj_id) == XSTYPE_DICT)
1527 obj_id = xs_dict_get(obj_id, "id"); 1527 obj_id = xs_dict_get(obj_id, "id");
1528 1528
1529 if (object_here(obj_id)) { 1529 if (!object_here(obj_id)) {
1530 srv_debug(1, xs_fmt("dropped 'Delete' message from unknown object '%s'", obj_id)); 1530 srv_debug(1, xs_fmt("dropped 'Delete' message from unknown object '%s'", obj_id));
1531 return -1; 1531 return -1;
1532 } 1532 }
@@ -1778,8 +1778,10 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1778 if (xs_type(object) == XSTYPE_DICT) 1778 if (xs_type(object) == XSTYPE_DICT)
1779 object = xs_dict_get(object, "id"); 1779 object = xs_dict_get(object, "id");
1780 1780
1781 if (valid_status(timeline_del(snac, object))) 1781 if (object_here(object)) {
1782 timeline_del(snac, object);
1782 snac_debug(snac, 1, xs_fmt("new 'Delete' %s %s", actor, object)); 1783 snac_debug(snac, 1, xs_fmt("new 'Delete' %s %s", actor, object));
1784 }
1783 else 1785 else
1784 snac_debug(snac, 1, xs_fmt("ignored 'Delete' for unknown object %s", object)); 1786 snac_debug(snac, 1, xs_fmt("ignored 'Delete' for unknown object %s", object));
1785 } 1787 }