mirror of https://gitlab.com/bashrc2/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:
|
allowWriteToFile: bool) -> None:
|
||||||
"""Store an actor in the cache
|
"""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()
|
currTime = datetime.datetime.utcnow()
|
||||||
personCache[personUrl] = {
|
personCache[personUrl] = {
|
||||||
"actor": personJson,
|
"actor": personJson,
|
||||||
|
|
Loading…
Reference in New Issue