diff options
| author | 2024-11-24 08:46:26 +0100 | |
|---|---|---|
| committer | 2024-11-24 08:46:26 +0100 | |
| commit | 96576d2c5df41b91e915a31d5c0c039f4852f583 (patch) | |
| tree | 8a3e37d2ee5c734e1f9761ff34c342545c1f6c4b | |
| parent | New function pending_check() and pending_del(). (diff) | |
| download | penes-snac2-96576d2c5df41b91e915a31d5c0c039f4852f583.tar.gz penes-snac2-96576d2c5df41b91e915a31d5c0c039f4852f583.tar.xz penes-snac2-96576d2c5df41b91e915a31d5c0c039f4852f583.zip | |
On unfollow, also delete from the pending follow list.
| -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) | |||
| 1973 | do_notify = 1; | 1973 | do_notify = 1; |
| 1974 | } | 1974 | } |
| 1975 | else | 1975 | else |
| 1976 | if (pending_check(snac, actor)) { | ||
| 1977 | pending_del(snac, actor); | ||
| 1978 | snac_log(snac, xs_fmt("cancelled pending follow from %s", actor)); | ||
| 1979 | } | ||
| 1980 | else | ||
| 1976 | snac_log(snac, xs_fmt("error deleting follower %s", actor)); | 1981 | snac_log(snac, xs_fmt("error deleting follower %s", actor)); |
| 1977 | } | 1982 | } |
| 1978 | } | 1983 | } |