Merge pull request 'fix followers list' (#3557) from fix-followers into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3557
This commit is contained in:
HJ 2026-08-14 19:34:09 +00:00
commit bf1f7d8f93

View file

@ -231,7 +231,9 @@ export const mutations = {
},
saveFollowerIds(state, { id, followerIds }) {
const user = state.usersObject[id]
user.followerIds = [...new Set([user.followerIds || [], ...followerIds])]
user.followerIds = [
...new Set([...(user.followerIds || []), ...followerIds]),
]
},
// Because frontend doesn't have a reason to keep these stuff in memory
// outside of viewing someones user profile.