fix search
This commit is contained in:
parent
39e385bb48
commit
ac962a3589
2 changed files with 3 additions and 2 deletions
|
|
@ -119,7 +119,7 @@
|
|||
>
|
||||
<router-link
|
||||
class="list-item hashtag"
|
||||
:to="{ name: 'tag-timeline', params: { tag: hashtag.name } }"
|
||||
:to="{ name: 'tag-timeline', params: { id: hashtag.name } }"
|
||||
>
|
||||
<span class="name">
|
||||
#{{ hashtag.name }}
|
||||
|
|
|
|||
|
|
@ -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