aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-04-15 19:58:15 +0000
committerShpuld Shpludson <shp@cock.li>2019-04-15 19:58:15 +0000
commit55410c91fab4c2f206c130f453a63a5381213217 (patch)
treedaae0b92097f745c917e56ea3ed4e6b2d1b4707b /src/components/user_profile
parentefa93d0829dc703c560115cf5c7d15985bce915e (diff)
parente7010d73aca4a2555ef55c41de372ebdd28bd799 (diff)
Merge branch '489' into 'develop'
Fix Blocked status inconsistency between Blocks setting tab and Following profile tab Closes #489 See merge request pleroma/pleroma-fe!751
Diffstat (limited to 'src/components/user_profile')
-rw-r--r--src/components/user_profile/user_profile.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index d55d1517..4b0072ad 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -9,8 +9,8 @@ import withList from '../../hocs/with_list/with_list'
const FollowerList = compose(
withLoadMore({
- fetch: (props, $store) => $store.dispatch('addFollowers', props.userId),
- select: (props, $store) => get($store.getters.findUser(props.userId), 'followers', []),
+ fetch: (props, $store) => $store.dispatch('fetchFollowers', props.userId),
+ select: (props, $store) => get($store.getters.findUser(props.userId), 'followerIds', []).map(id => $store.getters.findUser(id)),
destory: (props, $store) => $store.dispatch('clearFollowers', props.userId),
childPropName: 'entries',
additionalPropNames: ['userId']
@@ -20,8 +20,8 @@ const FollowerList = compose(
const FriendList = compose(
withLoadMore({
- fetch: (props, $store) => $store.dispatch('addFriends', props.userId),
- select: (props, $store) => get($store.getters.findUser(props.userId), 'friends', []),
+ fetch: (props, $store) => $store.dispatch('fetchFriends', props.userId),
+ select: (props, $store) => get($store.getters.findUser(props.userId), 'friendIds', []).map(id => $store.getters.findUser(id)),
destory: (props, $store) => $store.dispatch('clearFriends', props.userId),
childPropName: 'entries',
additionalPropNames: ['userId']