Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3553
This commit is contained in:
commit
0619292b7a
3 changed files with 15 additions and 4 deletions
1
changelog.d/followers-list.fix
Normal file
1
changelog.d/followers-list.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix followers list showing followed users as non-followed
|
||||
|
|
@ -117,9 +117,17 @@ export const fetchUserByName = ({ name, credentials }) =>
|
|||
|
||||
export const fetchFriends = ({ id, maxId, sinceId, limit = 20, credentials }) =>
|
||||
promisedRequest({
|
||||
url: MASTODON_FOLLOWING_URL(id, { maxId, sinceId, limit }),
|
||||
url: MASTODON_FOLLOWING_URL(id, {
|
||||
maxId,
|
||||
sinceId,
|
||||
limit,
|
||||
withRelationships: true,
|
||||
}),
|
||||
credentials,
|
||||
}).then(({ data, ...rest }) => ({ ...rest, data: data.map(parseUser) }))
|
||||
}).then(({ data, ...rest }) => ({
|
||||
...rest,
|
||||
data: data.map(parseUser),
|
||||
}))
|
||||
|
||||
export const fetchFollowers = ({
|
||||
id,
|
||||
|
|
@ -136,7 +144,10 @@ export const fetchFollowers = ({
|
|||
withRelationships: true,
|
||||
}),
|
||||
credentials,
|
||||
}).then(({ data, ...rest }) => ({ ...rest, data: data.map(parseUser) }))
|
||||
}).then(({ data, ...rest }) => ({
|
||||
...rest,
|
||||
data: data.map(parseUser),
|
||||
}))
|
||||
|
||||
export const fetchConversation = ({ id, credentials }) =>
|
||||
promisedRequest({
|
||||
|
|
|
|||
|
|
@ -410,7 +410,6 @@ export const exportFriends = ({ id, credentials }) => {
|
|||
id,
|
||||
maxId,
|
||||
credentials,
|
||||
withRelationships: true,
|
||||
})
|
||||
friends = [...friends, ...users]
|
||||
if (users.length === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue