forked from indymedia/epicyon
dms are not necessarily replies
parent
e84bf4d726
commit
171f23e751
5
posts.py
5
posts.py
|
@ -1894,6 +1894,11 @@ def isImageMedia(session,baseDir: str,httpPrefix: str,nickname: str,domain: str,
|
|||
def isReply(postJsonObject: {},actor: str) -> bool:
|
||||
"""Returns true if the given post is a reply to the given actor
|
||||
"""
|
||||
if isDM(postJsonObject):
|
||||
if postJsonObject['object'].get('inReplyTo'):
|
||||
if postJsonObject['object']['inReplyTo'].startswith(actor):
|
||||
return True
|
||||
else:
|
||||
if postJsonObject['type']!='Create':
|
||||
return False
|
||||
if not postJsonObject.get('object'):
|
||||
|
|
Loading…
Reference in New Issue