diff --git a/inbox.py b/inbox.py index 2db7ed43b..571601463 100644 --- a/inbox.py +++ b/inbox.py @@ -1387,6 +1387,13 @@ def validPostContent(messageJson: {},maxMentions: int,maxEmoji: int) -> bool: return True if not messageJson['object'].get('content'): return True + + if not messageJson['object'].get('published'): + return False + if 'T' not in messageJson['object']['published']: + return False + if 'Z' not in messageJson['object']['published']: + return False # check for bad html invalidStrings=['