forked from indymedia/epicyon
Check that following file exists
parent
7d4926fed9
commit
c9981f6936
13
inbox.py
13
inbox.py
|
@ -2238,10 +2238,17 @@ def inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
sendH = \
|
sendH = \
|
||||||
sendingActorNickname + '@' + sendingActorDomain
|
sendingActorNickname + '@' + sendingActorDomain
|
||||||
if sendH != nickname + '@' + domain:
|
if sendH != nickname + '@' + domain:
|
||||||
if sendH not in open(followingFilename).read():
|
if not os.path.isfile(followingFilename):
|
||||||
|
print('No following.txt file exists for ' +
|
||||||
|
nickname + '@' + domain)
|
||||||
|
return False
|
||||||
|
if sendH not in \
|
||||||
|
open(followingFilename).read():
|
||||||
print(nickname + '@' + domain +
|
print(nickname + '@' + domain +
|
||||||
' cannot receive DM from ' + sendH +
|
' cannot receive DM from ' +
|
||||||
' because they do not follow them')
|
sendH +
|
||||||
|
' because they do not ' +
|
||||||
|
'follow them')
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue