improve alt text mapping in ApImageService.createImage

This commit is contained in:
Hazelnoot 2025-06-13 11:42:31 -04:00
parent db8f94b0fb
commit e5593af422

View file

@ -86,7 +86,7 @@ export class ApImageService {
uri: image.url,
sensitive: !!(image.sensitive),
isLink: !shouldBeCached,
comment: truncate(image.name ?? undefined, this.config.maxRemoteAltTextLength),
comment: truncate(image.name || image.summary || undefined, this.config.maxRemoteAltTextLength),
});
if (!file.isLink || file.url === image.url) return file;