feat: add highlights to quotes

This commit is contained in:
codytseng
2025-11-17 22:37:04 +08:00
parent b4366325cd
commit 7065015462
5 changed files with 58 additions and 148 deletions

View File

@@ -47,7 +47,7 @@ const NoteList = forwardRef(
showNewNotesDirectly = false
}: {
subRequests: TFeedSubRequest[]
showKinds: number[]
showKinds?: number[]
filterMutedNotes?: boolean
hideReplies?: boolean
hideUntrustedNotes?: boolean
@@ -236,7 +236,7 @@ const NoteList = forwardRef(
setNewEvents([])
setHasMore(true)
if (showKinds.length === 0) {
if (showKinds?.length === 0 && subRequests.every(({ filter }) => !filter.kinds)) {
setLoading(false)
setHasMore(false)
return () => {}
@@ -246,7 +246,7 @@ const NoteList = forwardRef(
subRequests.map(({ urls, filter }) => ({
urls,
filter: {
kinds: showKinds,
kinds: showKinds ?? [],
...filter,
limit: areAlgoRelays ? ALGO_LIMIT : LIMIT
}