mirror of https://gitlab.com/bashrc2/epicyon
Check that post actors don't contain hashes
parent
7058b6e2db
commit
1104de5ff1
2
utils.py
2
utils.py
|
@ -3146,6 +3146,8 @@ def hasActor(postJsonObject: {}, debug: bool) -> bool:
|
||||||
"""Does the given post have an actor?
|
"""Does the given post have an actor?
|
||||||
"""
|
"""
|
||||||
if postJsonObject.get('actor'):
|
if postJsonObject.get('actor'):
|
||||||
|
if '#' in postJsonObject['actor']:
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
if debug:
|
if debug:
|
||||||
if postJsonObject.get('type'):
|
if postJsonObject.get('type'):
|
||||||
|
|
Loading…
Reference in New Issue