Upgrade Nostrify to v0.22.5, don't render media dimensions with 0x0 dim

This commit is contained in:
Alex Gleason
2024-06-01 10:28:30 -05:00
parent ffda62a4b0
commit efaa5323ec
3 changed files with 30 additions and 3 deletions

View File

@@ -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,