diff options
author | default <nobody@localhost> | 2022-10-01 19:48:13 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-01 19:48:13 +0200 |
commit | 366c23ab852ff40fa07a0d30d4f601bf2c3c727e (patch) | |
tree | fc44ecb7fd0955827c2eb0102cef64d82d9631f4 /activitypub.c | |
parent | 82e9a03925d27d9228ac5a20445b02902a70d0ca (diff) |
Also accept 'Delete' on input.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 21316c0..3aaef57 100644 --- a/activitypub.c +++ b/activitypub.c @@ -746,11 +746,14 @@ int process_message(snac *snac, char *msg, char *req) else snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); } -/* else if (strcmp(type, "Delete") == 0) { + if (xs_type(object) == XSTYPE_DICT) + object = xs_dict_get(object, "id"); + + timeline_del(snac, object); + snac_log(snac, xs_fmt("received delete request for %s", object)); } -*/ else snac_debug(snac, 1, xs_fmt("process_message type '%s' ignored", type)); |