commit 96576d2c5df41b91e915a31d5c0c039f4852f583
parent 129049edf4752495f768b247253cb7ffc848b0cc
Author: default <nobody@localhost>
Date: Sun, 24 Nov 2024 08:46:26 +0100
On unfollow, also delete from the pending follow list.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/activitypub.c b/activitypub.c
@@ -1973,6 +1973,11 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
do_notify = 1;
}
else
+ if (pending_check(snac, actor)) {
+ pending_del(snac, actor);
+ snac_log(snac, xs_fmt("cancelled pending follow from %s", actor));
+ }
+ else
snac_log(snac, xs_fmt("error deleting follower %s", actor));
}
}