feat: add kind:1111 events to feed

This commit is contained in:
codytseng
2025-05-24 16:53:14 +08:00
parent 06f9ea984f
commit 7552499a76
5 changed files with 52 additions and 32 deletions

View File

@@ -110,7 +110,7 @@ export default function NoteList({
subRequests.push({
urls: myRelayList.write.concat(BIG_RELAY_URLS).slice(0, 5),
filter: {
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights],
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights, ExtendedKind.COMMENT],
authors: [pubkey],
'#p': [author],
limit: LIMIT
@@ -119,7 +119,7 @@ export default function NoteList({
subRequests.push({
urls: targetRelayList.write.concat(BIG_RELAY_URLS).slice(0, 5),
filter: {
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights],
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights, ExtendedKind.COMMENT],
authors: [author],
'#p': [pubkey],
limit: LIMIT
@@ -135,7 +135,7 @@ export default function NoteList({
kinds:
filterType === 'pictures'
? [ExtendedKind.PICTURE]
: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights],
: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights, ExtendedKind.COMMENT],
limit: areAlgoRelays ? ALGO_LIMIT : LIMIT
}
if (relayUrls.length === 0 && (_filter.authors?.length || author)) {