forked from indymedia/epicyon
Extra print
parent
da242f5c91
commit
6667e94021
|
@ -278,6 +278,8 @@ def followApprovalRequired(baseDir: str,nicknameToFollow: str, \
|
||||||
""" Returns the policy for follower approvals
|
""" Returns the policy for follower approvals
|
||||||
"""
|
"""
|
||||||
manuallyApproveFollows=False
|
manuallyApproveFollows=False
|
||||||
|
if ':' in domainToFollow:
|
||||||
|
domainToFollow=domainToFollow.split(':')[0]
|
||||||
actorFilename=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow+'.json'
|
actorFilename=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow+'.json'
|
||||||
if os.path.isfile(actorFilename):
|
if os.path.isfile(actorFilename):
|
||||||
with open(actorFilename, 'r') as fp:
|
with open(actorFilename, 'r') as fp:
|
||||||
|
@ -424,6 +426,8 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \
|
||||||
nicknameToFollow,domainToFollow,port, \
|
nicknameToFollow,domainToFollow,port, \
|
||||||
nickname,domain,fromPort,
|
nickname,domain,fromPort,
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
|
else:
|
||||||
|
print('******** Follow request does not require approval')
|
||||||
|
|
||||||
print('Beginning follow accept')
|
print('Beginning follow accept')
|
||||||
return followedAccountAccepts(session,baseDir,httpPrefix, \
|
return followedAccountAccepts(session,baseDir,httpPrefix, \
|
||||||
|
|
Loading…
Reference in New Issue