aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-07-01 12:46:42 +0000
committerlain <lain@soykaf.club>2020-07-01 12:46:42 +0000
commitbeb160bd537abcb7f2e147c7954886d2f51d385f (patch)
tree332eb88bacbc6a11f61808280edaec50ebf48bbb /src/components/status/status.js
parent82944f862d07db46cf342f2ee75b2ab6ddccc4fc (diff)
parent38d8526660df4ca664c9ea50a660868be2cb5e49 (diff)
Merge branch 'fix/use-backend-reply-filtering' into 'develop'
Make use of backend reply filtering See merge request pleroma/pleroma-fe!1163
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 73382521..ad0b72a9 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -141,7 +141,7 @@ const Status = {
return this.mergedConfig.hideFilteredStatuses
},
hideStatus () {
- return (this.hideReply || this.deleted) || (this.muted && this.hideFilteredStatuses)
+ return this.deleted || (this.muted && this.hideFilteredStatuses)
},
isFocused () {
// retweet or root of an expanded conversation
@@ -164,37 +164,6 @@ const Status = {
return user && user.screen_name
}
},
- hideReply () {
- if (this.mergedConfig.replyVisibility === 'all') {
- return false
- }
- if (this.inConversation || !this.isReply) {
- return false
- }
- if (this.status.user.id === this.currentUser.id) {
- return false
- }
- if (this.status.type === 'retweet') {
- return false
- }
- const checkFollowing = this.mergedConfig.replyVisibility === 'following'
- for (var i = 0; i < this.status.attentions.length; ++i) {
- if (this.status.user.id === this.status.attentions[i].id) {
- continue
- }
- // There's zero guarantee of this working. If we happen to have that user and their
- // relationship in store then it will work, but there's kinda little chance of having
- // them for people you're not following.
- const relationship = this.$store.state.users.relationships[this.status.attentions[i].id]
- if (checkFollowing && relationship && relationship.following) {
- return false
- }
- if (this.status.attentions[i].id === this.currentUser.id) {
- return false
- }
- }
- return this.status.attentions.length > 0
- },
replySubject () {
if (!this.status.summary) return ''
const decodedSummary = unescape(this.status.summary)