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'):
|
if not messageJson['type'].startswith('Undo'):
|
||||||
return False
|
return False
|
||||||
|
if debug:
|
||||||
|
print('DEBUG: Undo activity received')
|
||||||
if not messageJson.get('actor'):
|
if not messageJson.get('actor'):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: follow request has no actor')
|
print('DEBUG: follow request has no actor')
|
||||||
|
|
6
tests.py
6
tests.py
|
@ -1080,8 +1080,10 @@ def testClientToServer():
|
||||||
True)
|
True)
|
||||||
for t in range(10):
|
for t in range(10):
|
||||||
if os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt'):
|
if os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt'):
|
||||||
if os.path.isfile(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt'):
|
if 'alice@'+aliceDomain+':'+alicePort in open(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt').read():
|
||||||
break
|
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)
|
time.sleep(1)
|
||||||
|
|
||||||
assert os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt')
|
assert os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt')
|
||||||
|
|
Loading…
Reference in New Issue