From 1104de5ff12937c40384c6dfa3f82c267087429d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 6 Dec 2021 12:58:54 +0000 Subject: [PATCH] Check that post actors don't contain hashes --- utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.py b/utils.py index e71f8c0c7..127b57a21 100644 --- a/utils.py +++ b/utils.py @@ -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'):