fix(backend,frontend): expired story keeps its kind and archive heals stories that lost it, phone inputs no longer zoom the page
This commit is contained in:
1 parent
d9378056f4
commit
acfa726e61
7 files changed
+69
-9
No files matched your search
@@ -24,6 +24,10 @@ class ContentAddressedStorage:
|
||||
def get(self, key: str) -> bytes:
|
||||
return self._path(key).read_bytes()
|
||||
|
||||
def head(self, key: str, size: int = 16) -> bytes:
|
||||
with self._path(key).open("rb") as file:
|
||||
return file.read(size)
|
||||
|
||||
def exists(self, key: str) -> bool:
|
||||
return self._path(key).exists()
|
||||
|
||||
|
||||
Reference in new issue
Block a user