aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2024-04-28 17:29:17 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2024-04-28 17:29:17 +0000
commit3056017f8e35c98a7fb42162c7e3460a4ebab619 (patch)
treecf94fe937a959118d7b10528846029a1b4f0ed08 /src/components/status/status.js
parent36f2fef55ab370cc51f1ff81b419f28e2f50409b (diff)
parent64732604871f23734f5600810e165b625d15ffda (diff)
Merge branch 'eintei-port-mute-nsfw' into 'develop'
Ability to mute nsfw posts Closes #1288 See merge request pleroma/pleroma-fe!1913
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js10
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
},