mirror of https://gitlab.com/bashrc2/epicyon
Over-zealous function use
parent
9510ac8bf8
commit
214511db01
|
@ -400,6 +400,7 @@ def postMessageToOutbox(session, translate: {},
|
||||||
|
|
||||||
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
|
if boxNameIndex == 'inbox' and outboxName == 'tlblogs':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# avoid duplicates of the message if already going
|
# avoid duplicates of the message if already going
|
||||||
# back to the inbox of the same account
|
# back to the inbox of the same account
|
||||||
if messageJson['to'] != selfActor:
|
if messageJson['to'] != selfActor:
|
||||||
|
|
4
posts.py
4
posts.py
|
@ -3908,7 +3908,9 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str,
|
||||||
recentPostsCache: {}, debug: bool) -> {}:
|
recentPostsCache: {}, debug: bool) -> {}:
|
||||||
"""Download the post referenced by an announce
|
"""Download the post referenced by an announce
|
||||||
"""
|
"""
|
||||||
if not hasObjectDict(postJsonObject):
|
if not postJsonObject.get('object'):
|
||||||
|
return None
|
||||||
|
if not isinstance(postJsonObject['object'], str):
|
||||||
return None
|
return None
|
||||||
# ignore self-boosts
|
# ignore self-boosts
|
||||||
if postJsonObject['actor'] in postJsonObject['object']:
|
if postJsonObject['actor'] in postJsonObject['object']:
|
||||||
|
|
Loading…
Reference in New Issue