snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit e9f391ed869bb59c782c1bcfb4beba34b8b70bde
parent 91b656f111762b4b163eda0f4673ded72e23038e
Author: default <nobody@localhost>
Date:   Fri, 15 Dec 2023 11:08:10 +0100

Added a special check for Undo + Follow.

Diffstat:
Mactivitypub.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -1588,6 +1588,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) } else if (strcmp(type, "Undo") == 0) { /** **/ + if (xs_type(object) != XSTYPE_DICT) + utype = "Follow"; + if (strcmp(utype, "Follow") == 0) { /** **/ if (valid_status(follower_del(snac, actor))) { snac_log(snac, xs_fmt("no longer following us %s", actor));