aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-02-09 06:47:29 +0000
committerShpuld Shpludson <shp@cock.li>2019-02-09 06:47:29 +0000
commit531f150dd31ffc11b6f67145f4245b20457544aa (patch)
treebfc192e315668dee33a6a4b87c091b7e0b0c9bfb /src/components/status/status.js
parent9768558e7c65f6a4a343d4a78b2297e4888cf77b (diff)
parent7818d6786b8489ddc18a5cd0d63e894450ec5ead (diff)
Merge branch 'fix/add-option-to-hide-filtered-statues' into 'develop'
#254 Add option to hide filtered statuses See merge request pleroma/pleroma-fe!539
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 65ddcb9f..8181b0db 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -110,6 +110,14 @@ const Status = {
return hits
},
muted () { return !this.unmuted && (this.status.user.muted || this.muteWordHits.length > 0) },
+ hideFilteredStatuses () {
+ return typeof this.$store.state.config.hideFilteredStatuses === 'undefined'
+ ? this.$store.state.instance.hideFilteredStatuses
+ : this.$store.state.config.hideFilteredStatuses
+ },
+ hideStatus () {
+ return (this.hideReply || this.deleted) || (this.muted && this.hideFilteredStatuses)
+ },
isFocused () {
// retweet or root of an expanded conversation
if (this.focused) {