users store unit tests

This commit is contained in:
Henry Jameson 2026-08-18 03:20:09 +03:00
commit 975b338586
16 changed files with 1804 additions and 727 deletions

View file

@ -592,6 +592,15 @@ export const useStatusesStore = defineStore('statuses', {
})
},
// For when blocking a user
wipeUserStatuses(userId) {
this.allStatuses.values().forEach((status) => {
if (status.user.id === userId) {
this.allStatuses.delete(status.id)
}
})
},
// Search
search({ q, resolve, limit, offset, following, type }) {
return search2({