prioritize document summary over name

This commit is contained in:
Hazelnoot 2025-06-14 13:22:42 -04:00
parent 1747d79740
commit b44264c38b

View file

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