Bugfix
This commit is contained in:
parent
e8ee900c60
commit
0d7a1b9b5a
1 changed files with 2 additions and 2 deletions
|
@ -122,10 +122,10 @@ class ImageCache(object):
|
||||||
self.cache_attachment(url)
|
self.cache_attachment(url)
|
||||||
|
|
||||||
def get_actor_icon(self, url: str, size: int) -> Any:
|
def get_actor_icon(self, url: str, size: int) -> Any:
|
||||||
return self._get_file(url, size, Kind.ACTOR_ICON)
|
return self.get_file(url, size, Kind.ACTOR_ICON)
|
||||||
|
|
||||||
def get_attachment(self, url: str, size: int) -> Any:
|
def get_attachment(self, url: str, size: int) -> Any:
|
||||||
return self._get_file(url, size, Kind.ATTACHMENT)
|
return self.get_file(url, size, Kind.ATTACHMENT)
|
||||||
|
|
||||||
def get_file(self, url: str, size: int, kind: Kind) -> Any:
|
def get_file(self, url: str, size: int, kind: Kind) -> Any:
|
||||||
return self.fs.find_one({"url": url, "size": size, "kind": kind.value})
|
return self.fs.find_one({"url": url, "size": size, "kind": kind.value})
|
||||||
|
|
Loading…
Reference in a new issue