forked from indymedia/epicyon
Check that Url being stored is an actor
parent
f392777393
commit
69aa3455c2
4
cache.py
4
cache.py
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue