From 3e271e932a967e10cc3d14b0795e33b0121680dc Mon Sep 17 00:00:00 2001 From: fsociety Date: Tue, 1 Oct 2024 18:28:50 +0200 Subject: [PATCH] feat: update zapEndpoint URL and remove unused function Updated the zapEndpoint URL in the nostrZap.js file to direct towards the updated URL. Additionally, removed an unused function from the profile.blade.php file for cleaner code. --- resources/js/nostrZap.js | 2 +- .../views/pages/association/profile.blade.php | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/resources/js/nostrZap.js b/resources/js/nostrZap.js index 14a10dc..859c665 100644 --- a/resources/js/nostrZap.js +++ b/resources/js/nostrZap.js @@ -25,7 +25,7 @@ export default (livewireComponent) => ({ const amount = amountToPay * 1000; console.log('event', event); - const zapEndpoint = 'https://getalby.com/lnurlp/portaleinundzwanzig/callback'; + const zapEndpoint = 'https://pay.einundzwanzig.space/BTC/UILNURL/pay/i/98eo2PNNWByxqMCFZR5nzW'; const zapEvent = nip57.makeZapRequest({ profile: sender, diff --git a/resources/views/pages/association/profile.blade.php b/resources/views/pages/association/profile.blade.php index ab7e142..4cfb070 100644 --- a/resources/views/pages/association/profile.blade.php +++ b/resources/views/pages/association/profile.blade.php @@ -149,24 +149,6 @@ $save = function ($type) { ]); }; -$createKind0 = function () { - $note = new NostrEvent(); - $note->setKind(0); - $note->setContent(''); - $note->setTags([ - ['display_name', 'Einundzwanzig Portal'], - ['lud16', 'portaleinundzwanzig@getalby.com'], - ['pubkey', 'daf83d92768b5d0005373f83e30d4203c0b747c170449e02fea611a0da125ee6'], - ]); - $signer = new Sign(); - $signer->signEvent($note, config('services.nostr')); - $eventMessage = new EventMessage($note); - $relayUrl = config('services.relay'); - $relay = new Relay($relayUrl); - $relay->setMessage($eventMessage); - $result = $relay->send(); -}; - $createPaymentEvent = function () { $note = new NostrEvent(); $note->setKind(32121);