forked from indymedia/epicyon
Follow checks
parent
fb31927502
commit
fc42149e66
6
inbox.py
6
inbox.py
|
@ -410,10 +410,8 @@ def receiveUndoFollow(session,baseDir: str,httpPrefix: str, \
|
||||||
if portFollowing!=80 and portFollowing!=443:
|
if portFollowing!=80 and portFollowing!=443:
|
||||||
domainFollowingFull=domainFollowing+':'+str(portFollowing)
|
domainFollowingFull=domainFollowing+':'+str(portFollowing)
|
||||||
|
|
||||||
if not unfollowerOfPerson(baseDir,nicknameFollower,domainFollowerFull, \
|
return unfollowerOfPerson(baseDir,nicknameFollower,domainFollowerFull, \
|
||||||
nicknameFollowing,domainFollowingFull, \
|
nicknameFollowing,domainFollowingFull)
|
||||||
federationList,debug)
|
|
||||||
return True
|
|
||||||
|
|
||||||
def receiveUndo(session,baseDir: str,httpPrefix: str, \
|
def receiveUndo(session,baseDir: str,httpPrefix: str, \
|
||||||
port: int,sendThreads: [],postLog: [], \
|
port: int,sendThreads: [],postLog: [], \
|
||||||
|
|
4
tests.py
4
tests.py
|
@ -1080,9 +1080,9 @@ 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 'alice@'+aliceDomain+':'+alicePort in open(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt').read():
|
if 'alice@'+aliceDomain+':'+str(alicePort) in open(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt').read():
|
||||||
if os.path.isfile(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt'):
|
if os.path.isfile(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt'):
|
||||||
if 'bob@'+bobDomain+':'+bobPort in open(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt').read():
|
if 'bob@'+bobDomain+':'+str(bobPort) in open(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt').read():
|
||||||
break
|
break
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue