damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 5134004ff70b4e16201c624a3a6dc54476dbf0ac
parent 071a4209ea75a7468276c2f7b5cc707a8e116007
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  1 Mar 2023 21:59:01 -0800

Fix zap creation

Diffstat:
Mdamus/Util/Zap.swift | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/damus/Util/Zap.swift b/damus/Util/Zap.swift @@ -303,8 +303,7 @@ func fetch_zap_invoice(_ payreq: LNUrlPayRequest, zapreq: NostrEvent?, sats: Int var query = [URLQueryItem(name: "amount", value: "\(amount)")] - if let zapreq, zappable && zap_type != .non_zap { - let json = event_to_json(ev: zapreq) + if let zapreq, zappable && zap_type != .non_zap, let json = encode_json(zapreq) { print("zapreq json: \(json)") query.append(URLQueryItem(name: "nostr", value: json)) }