From 59656af44cf64069437eda1708b02c7a53788941 Mon Sep 17 00:00:00 2001 From: Alexander Tumin Date: Wed, 21 Feb 2024 21:27:12 +0300 Subject: Allow muting sensitive posts in public timelines --- src/components/status/status.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/components/status') diff --git a/src/components/status/status.js b/src/components/status/status.js index 8f22b708..a2c16323 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -238,6 +238,9 @@ const Status = { showActorTypeIndicator () { return !this.hideBotIndication }, + sensitiveStatus () { + return this.status.nsfw + }, mentionsLine () { if (!this.headTailLinks) return [] const writtenSet = new Set(this.headTailLinks.writtenMentions.map(_ => _.url)) @@ -265,7 +268,9 @@ const Status = { // Wordfiltered this.muteWordHits.length > 0 || // bot status - (this.muteBotStatuses && this.botStatus && !this.compact) + (this.muteBotStatuses && this.botStatus && !this.compact) || + // sensitive status + (this.muteSensitiveStatuses && this.sensitiveStatus && !this.compact) return !this.unmuted && !this.shouldNotMute && reasonsToMute }, userIsMuted () { @@ -371,6 +376,9 @@ const Status = { muteBotStatuses () { return this.mergedConfig.muteBotStatuses }, + muteSensitiveStatuses () { + return this.mergedConfig.muteSensitiveStatuses + }, hideBotIndication () { return this.mergedConfig.hideBotIndication }, -- cgit v1.2.3-70-g09d2 From 046678086fcdddf05c2c10f3494bf87e67f2fd6a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 24 Apr 2024 15:22:19 +0300 Subject: add explanation to why post is muted for sensitive muting --- src/components/status/status.vue | 6 ++++++ src/i18n/en.json | 1 + 2 files changed, 7 insertions(+) (limited to 'src/components/status') diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 4d9e1c3c..2a17bb13 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -30,6 +30,12 @@ :at="false" /> + + {{ $t('status.sensitive_muted') }} +