fix search

This commit is contained in:
Henry Jameson 2026-08-25 18:01:01 +03:00
commit ac962a3589
2 changed files with 3 additions and 2 deletions

View file

@ -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 }}

View file

@ -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
},