mirror of https://gitlab.com/bashrc2/epicyon
Indentation
parent
b257f90df2
commit
a3cbc28c1e
8
inbox.py
8
inbox.py
|
@ -1385,7 +1385,13 @@ def receiveAnnounce(recentPostsCache: {},
|
|||
nickname, domain, messageJson,
|
||||
__version__, translate,
|
||||
YTReplacementDomain)
|
||||
if postJsonObject:
|
||||
if not postJsonObject:
|
||||
if domain not in messageJson['object'] and \
|
||||
onionDomain not in messageJson['object']:
|
||||
if os.path.isfile(postFilename):
|
||||
# if the announce can't be downloaded then remove it
|
||||
os.remove(postFilename)
|
||||
else:
|
||||
if debug:
|
||||
print('DEBUG: Announce post downloaded for ' +
|
||||
messageJson['actor'] + ' -> ' + messageJson['object'])
|
||||
|
|
Loading…
Reference in New Issue