improve alt text mapping in ApImageService.createImage
This commit is contained in:
parent
db8f94b0fb
commit
e5593af422
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue