fix followers list

This commit is contained in:
Henry Jameson 2026-08-14 21:46:35 +03:00
commit 748d9effde

View file

@ -231,7 +231,7 @@ 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.