From 97dd816330ef2f6aa21ac1cc2b3885efe94c6c9d Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 8 Aug 2025 08:07:53 -0700 Subject: [PATCH] fix(feeds): fixing duplicate issues. Adding TODO item --- src/components/app-body/nostr/profile/profile-read.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/app-body/nostr/profile/profile-read.js b/src/components/app-body/nostr/profile/profile-read.js index b879649..4c5bd8a 100644 --- a/src/components/app-body/nostr/profile/profile-read.js +++ b/src/components/app-body/nostr/profile/profile-read.js @@ -1,6 +1,11 @@ /** - * Component for read nostr information kind 0 + * Component to read nostr information kind 0 (normal posts) + * + * TODO: + * - Currently feeds are retrieved from only one relay. It should retrieve Kind + * 0 posts from all relays. It should then remove any duplicate entries. */ + // Global npm libraries import React, { useEffect, useState } from 'react' import { Container, Button } from 'react-bootstrap' @@ -26,7 +31,8 @@ function ProfileRead (props) { const pubHexData = nip19.decode(npub) const pubHex = pubHexData.data - const pool = RelayPool(config.nostrRelays) + // const pool = RelayPool(config.nostrRelays) + const pool = new RelayPool([config.nostrRelay]) pool.on('open', relay => { relay.subscribe('subid', { limit: 5, kinds: [0], authors: [pubHex] }) setLoaded(true)