diff options
| author | default <nobody@localhost> | 2024-11-24 08:46:26 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-11-24 08:46:26 +0100 |
| commit | 96576d2c5df41b91e915a31d5c0c039f4852f583 (patch) | |
| tree | 8a3e37d2ee5c734e1f9761ff34c342545c1f6c4b /activitypub.c | |
| parent | 129049edf4752495f768b247253cb7ffc848b0cc (diff) | |
On unfollow, also delete from the pending follow list.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 3ab093f..7a7e346 100644 --- 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)); } } |