Add option to hide filtered statuses

This commit is contained in:
jasper 2019-02-08 04:25:56 -08:00
parent fbdb7d3d95
commit 10c7365451
2 changed files with 4 additions and 1 deletions

View file

@ -115,6 +115,9 @@ const Status = {
? this.$store.state.instance.hideFilteredStatuses ? this.$store.state.instance.hideFilteredStatuses
: this.$store.state.config.hideFilteredStatuses : this.$store.state.config.hideFilteredStatuses
}, },
hideStatus () {
return (!this.hideReply && !this.deleted) && !(this.muted && this.hideFilteredStatuses)
},
isFocused () { isFocused () {
// retweet or root of an expanded conversation // retweet or root of an expanded conversation
if (this.focused) { if (this.focused) {

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="status-el" v-if="(!hideReply && !deleted) && !(muted && hideFilteredStatuses)" :class="[{ 'status-el_focused': isFocused }, { 'status-conversation': inlineExpanded }]"> <div class="status-el" v-if="hideStatus" :class="[{ 'status-el_focused': isFocused }, { 'status-conversation': inlineExpanded }]">
<template v-if="muted && !noReplyLinks"> <template v-if="muted && !noReplyLinks">
<div class="media status container muted"> <div class="media status container muted">
<small> <small>