process users in reactions + tests

This commit is contained in:
Henry Jameson 2026-08-28 16:15:38 +03:00
commit 87f8f3fcaa
2 changed files with 29 additions and 9 deletions

View file

@ -190,8 +190,11 @@ export const useStatusesStore = defineStore('statuses', {
return fetchEmojiReactions({
id,
credentials: useOAuthStore().token,
}).then(({ data: emojiReactions }) => {
this.addEmojiReactionsBy(id, emojiReactions)
}).then(({ data, timestamp }) => {
data.forEach((reaction) => {
const users = useUsersStore().addNewUsers({ timestamp, data: reaction.accounts })
})
this.addEmojiReactionsBy(id, data)
})
},
fetchFavs(id) {