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
|
<router-link
|
||||||
class="list-item hashtag"
|
class="list-item hashtag"
|
||||||
:to="{ name: 'tag-timeline', params: { tag: hashtag.name } }"
|
:to="{ name: 'tag-timeline', params: { id: hashtag.name } }"
|
||||||
>
|
>
|
||||||
<span class="name">
|
<span class="name">
|
||||||
#{{ hashtag.name }}
|
#{{ hashtag.name }}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export const useSearchStore = defineStore('search', {
|
||||||
credentials: useOAuthStore().token,
|
credentials: useOAuthStore().token,
|
||||||
})
|
})
|
||||||
|
|
||||||
const { accounts, statuses } = data
|
const { accounts, statuses, hashtags } = data
|
||||||
|
|
||||||
useUsersStore().addNewUsers({
|
useUsersStore().addNewUsers({
|
||||||
...rest,
|
...rest,
|
||||||
|
|
@ -36,6 +36,7 @@ export const useSearchStore = defineStore('search', {
|
||||||
useStatusesStore().allStatuses.get(s.id),
|
useStatusesStore().allStatuses.get(s.id),
|
||||||
)
|
)
|
||||||
output.accounts = accounts.map((s) => useUsersStore().findUser(s.id))
|
output.accounts = accounts.map((s) => useUsersStore().findUser(s.id))
|
||||||
|
output.hashtags = hashtags ?? []
|
||||||
return output
|
return output
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue