users store unit tests
This commit is contained in:
parent
24b0f98ef0
commit
975b338586
16 changed files with 1804 additions and 727 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue