From 366c23ab852ff40fa07a0d30d4f601bf2c3c727e Mon Sep 17 00:00:00 2001 From: default Date: Sat, 1 Oct 2022 19:48:13 +0200 Subject: [PATCH] Also accept 'Delete' on input. --- activitypub.c | 7 +++++-- 1 file 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));