mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
pass through width and height of attachments to allow styling based on media orientation
This commit is contained in:
committed by
Thomas Sileo
parent
afd253a1b4
commit
8f00e522d7
@ -275,6 +275,8 @@ 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
|
||||
|
Reference in New Issue
Block a user