Skip to content
Snippets Groups Projects
Commit 58d329e3 authored by dakkar's avatar dakkar
Browse files

make sure that `sensitive` is a boolean - fixes #596

Some remote instances may send garbage. If the `sensitive` value
passed to `driveService.uploadFromUrl` is not a boolean, eventually
we'll get an exception from the database complaining about that. This
change avoids that problem.
parent 5496aa27
No related branches found
No related tags found
No related merge requests found
......@@ -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),
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment