Perf: Include quote posts in the post-thread placeholder (#2104)
This commit is contained in:
@@ -30,6 +30,7 @@ import {fetchPage} from './util'
|
||||
import {FeedPage} from './types'
|
||||
import {useMutedThreads} from '#/state/muted-threads'
|
||||
import {STALE} from '..'
|
||||
import {embedViewRecordToPostView, getEmbeddedPost} from '../util'
|
||||
|
||||
export type {NotificationType, FeedNotification, FeedPage} from './types'
|
||||
|
||||
@@ -119,6 +120,10 @@ export function* findAllPostsInQueryData(
|
||||
if (item.subject?.uri === uri) {
|
||||
yield item.subject
|
||||
}
|
||||
const quotedPost = getEmbeddedPost(item.subject.embed)
|
||||
if (quotedPost?.uri === uri) {
|
||||
yield embedViewRecordToPostView(quotedPost)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user