Fix import of link previews without date

This commit is contained in:
Fedor Indutny 2025-01-09 13:29:06 -08:00 committed by GitHub
parent 79d3a0f1ee
commit 6b00cf756e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1760,7 +1760,7 @@ export class BackupImportStream extends Writable {
url,
title: dropNull(preview.title),
description: dropNull(preview.description),
date: getCheckedTimestampFromLong(preview.date),
date: getCheckedTimestampOrUndefinedFromLong(preview.date),
image: preview.image
? convertFilePointerToAttachment(preview.image)
: undefined,