Check that Url being stored is an actor

This commit is contained in:
bashrc committed 2020-12-12 09:54:42 +00:00
1 parent f392777393
commit 69aa3455c2
1 file changed
+4
+4
View File
@@ -18,6 +18,10 @@ def storePersonInCache(baseDir: str, personUrl: str,
allowWriteToFile: bool) -> None:
"""Store an actor in the cache
"""
if 'statuses' in personUrl or personUrl.endswith('/actor'):
# This is not an actor or person account
return
currTime = datetime.datetime.utcnow()
personCache[personUrl] = {
"actor": personJson,