mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-06 23:24:22 +01:00
Upgrade Nostrify to v0.22.5, don't render media dimensions with 0x0 dim
This commit is contained in:
@@ -16,7 +16,7 @@ function renderAttachment(media: { id?: string; data: string[][] }) {
|
||||
|
||||
const [width, height] = dim?.split('x').map(Number) ?? [null, null];
|
||||
|
||||
const meta = (typeof width === 'number' && typeof height === 'number')
|
||||
const meta = (width && height)
|
||||
? {
|
||||
original: {
|
||||
width,
|
||||
|
||||
Reference in New Issue
Block a user