mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-22 23:22:27 +02:00
fix bug with getting tip address
This commit is contained in:
15
README.md
15
README.md
@@ -81,11 +81,26 @@ I would recomend you use a browser extension like [Alby](https://getalby.com/) o
|
|||||||
- add `client` tag to published events
|
- add `client` tag to published events
|
||||||
- Save note drafts and let users manage them
|
- Save note drafts and let users manage them
|
||||||
- make app a valid web share target https://developer.chrome.com/articles/web-share-target/
|
- make app a valid web share target https://developer.chrome.com/articles/web-share-target/
|
||||||
|
- handle `nostr:` links
|
||||||
|
- handle image share
|
||||||
- implement NIP-56 and blocking
|
- implement NIP-56 and blocking
|
||||||
- block notes based on content
|
- block notes based on content
|
||||||
- allow user to select relay or following list when fetching replies (default to my relays + following?)
|
- allow user to select relay or following list when fetching replies (default to my relays + following?)
|
||||||
- massive thread note1dapvuu8fl09yjtg2gyr2h6nypaffl2sq0aj5raz86463qk5kpyzqlxvtc3
|
- massive thread note1dapvuu8fl09yjtg2gyr2h6nypaffl2sq0aj5raz86463qk5kpyzqlxvtc3
|
||||||
|
|
||||||
|
User / Note Tip or Zap modal requirements.
|
||||||
|
|
||||||
|
- Custom user amounts
|
||||||
|
- add comment (added to either zap request or invoice description)
|
||||||
|
- default to zapping if lnurlp endpoint supports it
|
||||||
|
- optional eventId to make zaps target event
|
||||||
|
- show QR Code button
|
||||||
|
- handle LNURL / lightning address.
|
||||||
|
- pay with webln button
|
||||||
|
- pay with app (open lightning: url) button
|
||||||
|
- copy invoice button
|
||||||
|
- return a deffered promise or shared loading state so component can show loading
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@@ -36,7 +36,7 @@ export default function NoteZapButton({ note, ...props }: { note: NostrEvent } &
|
|||||||
const zapAmount = useRef(0);
|
const zapAmount = useRef(0);
|
||||||
|
|
||||||
const hasZapped = parsedZaps.some((zapRequest) => zapRequest.request.pubkey === account.pubkey);
|
const hasZapped = parsedZaps.some((zapRequest) => zapRequest.request.pubkey === account.pubkey);
|
||||||
const tipAddress = metadata?.lud06 ?? metadata?.lud16;
|
const tipAddress = metadata?.lud06 || metadata?.lud16;
|
||||||
|
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
if (!tipAddress) return;
|
if (!tipAddress) return;
|
||||||
|
Reference in New Issue
Block a user