commit ad718e5
default
·
2023-12-17 13:56:09 +0000 UTC
parent f93b5ad
Fixed shared inbox distribution logic for Delete messages.
1 files changed,
+4,
-2
+4,
-2
1@@ -1526,7 +1526,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
2 if (xs_type(obj_id) == XSTYPE_DICT)
3 obj_id = xs_dict_get(obj_id, "id");
4
5- if (object_here(obj_id)) {
6+ if (!object_here(obj_id)) {
7 srv_debug(1, xs_fmt("dropped 'Delete' message from unknown object '%s'", obj_id));
8 return -1;
9 }
10@@ -1778,8 +1778,10 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
11 if (xs_type(object) == XSTYPE_DICT)
12 object = xs_dict_get(object, "id");
13
14- if (valid_status(timeline_del(snac, object)))
15+ if (object_here(object)) {
16+ timeline_del(snac, object);
17 snac_debug(snac, 1, xs_fmt("new 'Delete' %s %s", actor, object));
18+ }
19 else
20 snac_debug(snac, 1, xs_fmt("ignored 'Delete' for unknown object %s", object));
21 }