summaryrefslogtreecommitdiffstats
path: root/src/api/mastodon
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-10-18 07:13:42 +0200
committerVolpeon <git@volpeon.ink>2021-10-18 07:13:42 +0200
commit5d2049cc09af5536e6bff5f6ee48c3568efdea23 (patch)
tree9402693f9b3d1e48122372a5fdcaa63e83accbbe /src/api/mastodon
parentAdded query to exclude dragons (diff)
downloadferalbot-5d2049cc09af5536e6bff5f6ee48c3568efdea23.tar.gz
feralbot-5d2049cc09af5536e6bff5f6ee48c3568efdea23.tar.bz2
feralbot-5d2049cc09af5536e6bff5f6ee48c3568efdea23.zip
Don't post as sensitive unless there's a spoiler defined
Diffstat (limited to 'src/api/mastodon')
-rw-r--r--src/api/mastodon/index.ts2
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 },