From 49a044a2a7622df17b8d6eca137277812b030b5a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 6 Oct 2019 10:53:53 +0100 Subject: [PATCH] Remove any follow requests rejected for the account being followed --- follow.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/follow.py b/follow.py index dff36b9e4..225967be6 100644 --- a/follow.py +++ b/follow.py @@ -536,6 +536,14 @@ def followedAccountAccepts(session,baseDir: str,httpPrefix: str, \ """The person receiving a follow request accepts the new follower and sends back an Accept activity """ + # Remove any follow requests rejected for the account being followed. + # It's assumed that if you are following someone then you are + # ok with them following back. If this isn't the case then a rejected + # follow request will block them again. + removeFromFollowRejects(baseDir, \ + nicknameToFollow,domainToFollow, \ + nickname+'@'+domain) + # send accept back if debug: print('DEBUG: sending Accept activity for follow request which arrived at '+ \