mirror of https://gitlab.com/bashrc2/epicyon
Extra follow checks
parent
a47538653a
commit
fb31927502
2
inbox.py
2
inbox.py
|
@ -425,6 +425,8 @@ def receiveUndo(session,baseDir: str,httpPrefix: str, \
|
|||
"""
|
||||
if not messageJson['type'].startswith('Undo'):
|
||||
return False
|
||||
if debug:
|
||||
print('DEBUG: Undo activity received')
|
||||
if not messageJson.get('actor'):
|
||||
if debug:
|
||||
print('DEBUG: follow request has no actor')
|
||||
|
|
2
tests.py
2
tests.py
|
@ -1080,7 +1080,9 @@ def testClientToServer():
|
|||
True)
|
||||
for t in range(10):
|
||||
if os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt'):
|
||||
if 'alice@'+aliceDomain+':'+alicePort in open(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt').read():
|
||||
if os.path.isfile(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt'):
|
||||
if 'bob@'+bobDomain+':'+bobPort in open(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt').read():
|
||||
break
|
||||
time.sleep(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue