From 5d2049cc09af5536e6bff5f6ee48c3568efdea23 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 18 Oct 2021 07:13:42 +0200 Subject: Don't post as sensitive unless there's a spoiler defined --- src/api/mastodon/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/mastodon/index.ts b/src/api/mastodon/index.ts index d0de0a0..e6a8c25 100644 --- a/src/api/mastodon/index.ts +++ b/src/api/mastodon/index.ts @@ -50,7 +50,7 @@ export async function createStatus( json: { status: lines.join("\n"), media_ids: [attachmentId], - sensitive: true, + sensitive: !!spoilerText, spoiler_text: spoilerText, visibility: "unlisted", }, -- cgit v1.2.3-70-g09d2