diff options
author | Volpeon <git@volpeon.ink> | 2021-10-18 07:13:42 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-10-18 07:13:42 +0200 |
commit | 5d2049cc09af5536e6bff5f6ee48c3568efdea23 (patch) | |
tree | 9402693f9b3d1e48122372a5fdcaa63e83accbbe | |
parent | Added query to exclude dragons (diff) | |
download | feralbot-5d2049cc09af5536e6bff5f6ee48c3568efdea23.tar.gz feralbot-5d2049cc09af5536e6bff5f6ee48c3568efdea23.tar.bz2 feralbot-5d2049cc09af5536e6bff5f6ee48c3568efdea23.zip |
Don't post as sensitive unless there's a spoiler defined
-rw-r--r-- | src/api/mastodon/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
50 | json: { | 50 | json: { |
51 | status: lines.join("\n"), | 51 | status: lines.join("\n"), |
52 | media_ids: [attachmentId], | 52 | media_ids: [attachmentId], |
53 | sensitive: true, | 53 | sensitive: !!spoilerText, |
54 | spoiler_text: spoilerText, | 54 | spoiler_text: spoilerText, |
55 | visibility: "unlisted", | 55 | visibility: "unlisted", |
56 | }, | 56 | }, |