pass through width and height of attachments to allow styling based on media orientation
This commit is contained in:
parent
afd253a1b4
commit
8f00e522d7
3 changed files with 10 additions and 2 deletions
|
@ -251,6 +251,8 @@ class OutboxObject(Base, BaseObject):
|
|||
"mediaType": attachment.upload.content_type,
|
||||
"name": attachment.alt or attachment.filename,
|
||||
"url": url,
|
||||
"width":attachment.width,
|
||||
"height":attachment.height,
|
||||
"proxiedUrl": url,
|
||||
"resizedUrl": BASE_URL
|
||||
+ (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue