Tweak orientation hint for attachments
This commit is contained in:
parent
8f00e522d7
commit
48d5914851
3 changed files with 8 additions and 7 deletions
|
@ -275,13 +275,14 @@ class Attachment(BaseModel):
|
|||
media_type: str | None
|
||||
name: str | None
|
||||
url: str
|
||||
width: int
|
||||
height: int
|
||||
|
||||
# Extra fields for the templates (and only for media)
|
||||
proxied_url: str | None = None
|
||||
resized_url: str | None = None
|
||||
|
||||
width: int | None = None
|
||||
height: int | None = None
|
||||
|
||||
@property
|
||||
def mimetype(self) -> str:
|
||||
mimetype = self.media_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue