Check that post actors don't contain hashes

main
Bob Mottram 2021-12-06 12:58:54 +00:00
parent 7058b6e2db
commit 1104de5ff1
1 changed files with 2 additions and 0 deletions

View File

@ -3146,6 +3146,8 @@ def hasActor(postJsonObject: {}, debug: bool) -> bool:
"""Does the given post have an actor?
"""
if postJsonObject.get('actor'):
if '#' in postJsonObject['actor']:
return False
return True
if debug:
if postJsonObject.get('type'):