On unfollow, also delete from the pending follow list.

This commit is contained in:
default 2024-11-24 08:46:26 +01:00
parent 129049edf4
commit 96576d2c5d

View file

@ -1972,6 +1972,11 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
snac_log(snac, xs_fmt("no longer following us %s", actor));
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));
}