diff options
| author | Alexander Tumin <iamtakingiteasy@eientei.org> | 2024-02-21 21:27:12 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-04-24 15:18:11 +0300 |
| commit | 59656af44cf64069437eda1708b02c7a53788941 (patch) | |
| tree | 1eaaa543cd5d0509b1f0b6b58eec15ad68fe8a51 /src/components/status | |
| parent | 15dde2d372419fd90c19de7a6f7b9b2458511adc (diff) | |
Allow muting sensitive posts in public timelines
Diffstat (limited to 'src/components/status')
| -rw-r--r-- | src/components/status/status.js | 10 |
1 files changed, 9 insertions, 1 deletions
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 }, |
