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/status.js') 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 4de9daa1144536f03c86d277b4ec1288dc9df432 Mon Sep 17 00:00:00 2001 From: marcin mikołajczak Date: Sun, 28 Apr 2024 18:56:10 +0000 Subject: Apply 1 suggestion(s) to 1 file(s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: marcin mikołajczak --- src/components/status/status.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/status/status.js') diff --git a/src/components/status/status.js b/src/components/status/status.js index 36f6c602..43181897 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -421,6 +421,8 @@ const Status = { let multiplier = 60 * 1000 // minutes is smallest unit switch (unit) { case 'm': + break + case 'h': multiplier *= 60 // hour break case 'd': -- cgit v1.2.3-70-g09d2