merge: make sure that `sensitive` is a boolean - fixes #596 (!590)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/590

Closes #596

Approved-by: fEmber <acomputerdog@gmail.com>
Approved-by: Marie <marie@kaifa.ch>
This commit is contained in:
dakkar 2024-08-06 09:20:53 +00:00
commit b93494d746
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export class ApImageService {
url: image.url,
user: actor,
uri: image.url,
sensitive: image.sensitive,
sensitive: !!(image.sensitive),
isLink: !shouldBeCached,
comment: truncate(image.name ?? undefined, DB_MAX_IMAGE_COMMENT_LENGTH),
});