feat: add highlights to feed
This commit is contained in:
@@ -110,7 +110,7 @@ export default function NoteList({
|
|||||||
subRequests.push({
|
subRequests.push({
|
||||||
urls: myRelayList.write.concat(BIG_RELAY_URLS).slice(0, 5),
|
urls: myRelayList.write.concat(BIG_RELAY_URLS).slice(0, 5),
|
||||||
filter: {
|
filter: {
|
||||||
kinds: [kinds.ShortTextNote, kinds.Repost],
|
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights],
|
||||||
authors: [pubkey],
|
authors: [pubkey],
|
||||||
'#p': [author],
|
'#p': [author],
|
||||||
limit: LIMIT
|
limit: LIMIT
|
||||||
@@ -119,7 +119,7 @@ export default function NoteList({
|
|||||||
subRequests.push({
|
subRequests.push({
|
||||||
urls: targetRelayList.write.concat(BIG_RELAY_URLS).slice(0, 5),
|
urls: targetRelayList.write.concat(BIG_RELAY_URLS).slice(0, 5),
|
||||||
filter: {
|
filter: {
|
||||||
kinds: [kinds.ShortTextNote, kinds.Repost],
|
kinds: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights],
|
||||||
authors: [author],
|
authors: [author],
|
||||||
'#p': [pubkey],
|
'#p': [pubkey],
|
||||||
limit: LIMIT
|
limit: LIMIT
|
||||||
@@ -135,7 +135,7 @@ export default function NoteList({
|
|||||||
kinds:
|
kinds:
|
||||||
filterType === 'pictures'
|
filterType === 'pictures'
|
||||||
? [ExtendedKind.PICTURE]
|
? [ExtendedKind.PICTURE]
|
||||||
: [kinds.ShortTextNote, kinds.Repost],
|
: [kinds.ShortTextNote, kinds.Repost, kinds.Highlights],
|
||||||
limit: areAlgoRelays ? ALGO_LIMIT : LIMIT
|
limit: areAlgoRelays ? ALGO_LIMIT : LIMIT
|
||||||
}
|
}
|
||||||
if (relayUrls.length === 0 && (_filter.authors?.length || author)) {
|
if (relayUrls.length === 0 && (_filter.authors?.length || author)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user