forked from indymedia/epicyon
Check that Url being stored is an actor
This commit is contained in:
1 parent
f392777393
commit
69aa3455c2
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user