diff --git a/inbox.py b/inbox.py index e8be76d04..d9ea5eee3 100644 --- a/inbox.py +++ b/inbox.py @@ -1110,6 +1110,7 @@ def validPostContent(messageJson: {},maxMentions: int) -> bool: """Is the content of a received post valid? Check for bad html Check for hellthreads + Check number of tags is reasonable """ if not messageJson.get('object'): return True @@ -1117,16 +1118,24 @@ def validPostContent(messageJson: {},maxMentions: int) -> bool: return True if not messageJson['object'].get('content'): return True - invalidStrings=['