update usePostThreadQuery to check quote query data
This commit is contained in:
@@ -13,6 +13,7 @@ import {QueryClient, useQuery, useQueryClient} from '@tanstack/react-query'
|
|||||||
import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped'
|
import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped'
|
||||||
import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types'
|
import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types'
|
||||||
import {useAgent} from '#/state/session'
|
import {useAgent} from '#/state/session'
|
||||||
|
import {findAllPostsInQueryData as findAllPostsInQuoteQueryData} from 'state/queries/post-quotes'
|
||||||
import {
|
import {
|
||||||
findAllPostsInQueryData as findAllPostsInSearchQueryData,
|
findAllPostsInQueryData as findAllPostsInSearchQueryData,
|
||||||
findAllProfilesInQueryData as findAllProfilesInSearchQueryData,
|
findAllProfilesInQueryData as findAllProfilesInSearchQueryData,
|
||||||
@@ -399,6 +400,9 @@ export function* findAllPostsInQueryData(
|
|||||||
for (let post of findAllPostsInFeedQueryData(queryClient, uri)) {
|
for (let post of findAllPostsInFeedQueryData(queryClient, uri)) {
|
||||||
yield postViewToPlaceholderThread(post)
|
yield postViewToPlaceholderThread(post)
|
||||||
}
|
}
|
||||||
|
for (let post of findAllPostsInQuoteQueryData(queryClient, uri)) {
|
||||||
|
yield postViewToPlaceholderThread(post)
|
||||||
|
}
|
||||||
for (let post of findAllPostsInNotifsQueryData(queryClient, uri)) {
|
for (let post of findAllPostsInNotifsQueryData(queryClient, uri)) {
|
||||||
yield postViewToPlaceholderThread(post)
|
yield postViewToPlaceholderThread(post)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user