mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-05 00:32:03 +00:00
ZapThreads viewable without logging in
This commit is contained in:
parent
b9df083eaf
commit
bc62c217dc
@ -91,10 +91,15 @@ const CommunityMessage = ({ message, searchQuery, windowWidth, platform }) => {
|
||||
{nsec || npub ? (
|
||||
<ZapThreadsWrapper
|
||||
anchor={nip19.noteEncode(message.id)}
|
||||
user={nsec || npub || null}
|
||||
user={nsec || npub}
|
||||
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.mutinywallet.com/, wss://relay.primal.net/, wss://nostr21.com/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
||||
/>
|
||||
) : null}
|
||||
) : (
|
||||
<ZapThreadsWrapper
|
||||
anchor={nip19.noteEncode(message.id)}
|
||||
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.mutinywallet.com/, wss://relay.primal.net/, wss://nostr21.com/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Panel>
|
||||
) : (
|
||||
|
@ -178,7 +178,7 @@ const Details = () => {
|
||||
handlePaymentError={handlePaymentError}
|
||||
authorView={authorView}
|
||||
/>
|
||||
{nAddress !== null && (nsec || npub) && (
|
||||
{nAddress !== null && (nsec || npub) ? (
|
||||
<div className='px-4'>
|
||||
<ZapThreadsWrapper
|
||||
anchor={nAddress}
|
||||
@ -187,7 +187,16 @@ const Details = () => {
|
||||
disable="zaps"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
) : nAddress !== null ? (
|
||||
<div className='px-4'>
|
||||
<ZapThreadsWrapper
|
||||
anchor={nAddress}
|
||||
user={npub}
|
||||
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.mutinywallet.com/, wss://relay.primal.net/, wss://nostr21.com/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
||||
disable="zaps"
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user