aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-05-08 09:14:26 +0000
committerShpuld Shpludson <shp@cock.li>2020-05-08 09:14:26 +0000
commit47c56ffa1c8509ed323602f54be34328e9105419 (patch)
treec439d51bcc3a5a972fc763ab96ade4cee9bed7a1 /src/components/user_settings
parent921eedfd84007da72619a553ba8d074076559e7a (diff)
parent1186205583715b187bb4e503dc35e8c0644cfc7e (diff)
Merge branch 'feat/relationship-refactor' into 'develop'
Refactor: make relationships separate from users Closes #819 See merge request pleroma/pleroma-fe!1091
Diffstat (limited to 'src/components/user_settings')
-rw-r--r--src/components/user_settings/user_settings.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index eca6f9b1..5338c974 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -351,14 +351,14 @@ const UserSettings = {
},
filterUnblockedUsers (userIds) {
return reject(userIds, (userId) => {
- const user = this.$store.getters.findUser(userId)
- return !user || user.statusnet_blocking || user.id === this.$store.state.users.currentUser.id
+ const relationship = this.$store.getters.relationship(this.userId)
+ return relationship.blocking || userId === this.$store.state.users.currentUser.id
})
},
filterUnMutedUsers (userIds) {
return reject(userIds, (userId) => {
- const user = this.$store.getters.findUser(userId)
- return !user || user.muted || user.id === this.$store.state.users.currentUser.id
+ const relationship = this.$store.getters.relationship(this.userId)
+ return relationship.muting || userId === this.$store.state.users.currentUser.id
})
},
queryUserIds (query) {