fix search
This commit is contained in:
parent
39e385bb48
commit
ac962a3589
2 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ export const useSearchStore = defineStore('search', {
|
|||
credentials: useOAuthStore().token,
|
||||
})
|
||||
|
||||
const { accounts, statuses } = data
|
||||
const { accounts, statuses, hashtags } = data
|
||||
|
||||
useUsersStore().addNewUsers({
|
||||
...rest,
|
||||
|
|
@ -36,6 +36,7 @@ export const useSearchStore = defineStore('search', {
|
|||
useStatusesStore().allStatuses.get(s.id),
|
||||
)
|
||||
output.accounts = accounts.map((s) => useUsersStore().findUser(s.id))
|
||||
output.hashtags = hashtags ?? []
|
||||
return output
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue