From 6667e940210def40892c7bc9e6533ee5a9394730 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Aug 2019 15:42:35 +0100 Subject: [PATCH] Extra print --- follow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/follow.py b/follow.py index 09cc2865..9ba71c11 100644 --- a/follow.py +++ b/follow.py @@ -278,6 +278,8 @@ def followApprovalRequired(baseDir: str,nicknameToFollow: str, \ """ Returns the policy for follower approvals """ manuallyApproveFollows=False + if ':' in domainToFollow: + domainToFollow=domainToFollow.split(':')[0] actorFilename=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow+'.json' if os.path.isfile(actorFilename): with open(actorFilename, 'r') as fp: @@ -424,6 +426,8 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \ nicknameToFollow,domainToFollow,port, \ nickname,domain,fromPort, messageJson,debug) + else: + print('******** Follow request does not require approval') print('Beginning follow accept') return followedAccountAccepts(session,baseDir,httpPrefix, \