Added empty Post constructor

This commit is contained in:
2025-08-09 04:24:16 +02:00
parent 8f228bde36
commit 14ed66aad7

View File

@ -20,6 +20,10 @@ class Post:
self._image: ImageFile | None = None
def empty(id: int) -> "Post":
return Post(id, 0, "00", [], b"")
def get_thumbnail(self) -> ImageFile:
if self._thumbnail is not None:
return self._thumbnail