forked from indymedia/epicyon
Check earlier
parent
c9981f6936
commit
93e554efb8
8
inbox.py
8
inbox.py
|
@ -2227,6 +2227,10 @@ def inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
followingFilename = \
|
followingFilename = \
|
||||||
baseDir + '/accounts/' + \
|
baseDir + '/accounts/' + \
|
||||||
nickname + '@' + domain + '/following.txt'
|
nickname + '@' + domain + '/following.txt'
|
||||||
|
if not os.path.isfile(followingFilename):
|
||||||
|
print('No following.txt file exists for ' +
|
||||||
|
nickname + '@' + domain)
|
||||||
|
return False
|
||||||
if not postJsonObject.get('actor'):
|
if not postJsonObject.get('actor'):
|
||||||
return False
|
return False
|
||||||
sendingActor = postJsonObject['actor']
|
sendingActor = postJsonObject['actor']
|
||||||
|
@ -2238,10 +2242,6 @@ def inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
sendH = \
|
sendH = \
|
||||||
sendingActorNickname + '@' + sendingActorDomain
|
sendingActorNickname + '@' + sendingActorDomain
|
||||||
if sendH != nickname + '@' + domain:
|
if sendH != nickname + '@' + domain:
|
||||||
if not os.path.isfile(followingFilename):
|
|
||||||
print('No following.txt file exists for ' +
|
|
||||||
nickname + '@' + domain)
|
|
||||||
return False
|
|
||||||
if sendH not in \
|
if sendH not in \
|
||||||
open(followingFilename).read():
|
open(followingFilename).read():
|
||||||
print(nickname + '@' + domain +
|
print(nickname + '@' + domain +
|
||||||
|
|
Loading…
Reference in New Issue