mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Store the follower handle
This commit is contained in:
1 parent
f2d5e1e05f
commit
f13751603d
1 file changed
+4
-2
@@ -264,6 +264,7 @@ def followApprovalRequired(baseDir: str,nicknameToFollow: str, \
|
||||
|
||||
def storeFollowRequest(baseDir: str, \
|
||||
nicknameToFollow: str,domainToFollow: str,port: int, \
|
||||
nickname: str,domain: str,fromPort: int, \
|
||||
followJson: {}, \
|
||||
debug: bool) -> bool:
|
||||
"""Stores the follow request for later use
|
||||
@@ -273,9 +274,9 @@ def storeFollowRequest(baseDir: str, \
|
||||
return False
|
||||
|
||||
if port!=80 and port!=443:
|
||||
approveHandle=nicknameToFollow+'@'+domainToFollow+':'+str(port)
|
||||
approveHandle=nickname+'@'+domain+':'+str(fromPort)
|
||||
else:
|
||||
approveHandle=nicknameToFollow+'@'+domainToFollow
|
||||
approveHandle=nickname+'@'+domain
|
||||
|
||||
# add to a file which contains a list of requests
|
||||
approveFollowsFilename=accountDir+'/followrequests.txt'
|
||||
@@ -375,6 +376,7 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \
|
||||
domainToFollow,debug):
|
||||
return storeFollowRequest(baseDir, \
|
||||
nicknameToFollow,domainToFollow,port, \
|
||||
nickname,domain,fromPort,
|
||||
messageJson,debug)
|
||||
|
||||
return followedAccountAccepts(session,baseDir,httpPrefix, \
|
||||
|
||||
Reference in new issue
Block a user