From e937176d52b803c177e96601e887cb68cde4d180 Mon Sep 17 00:00:00 2001 From: fsociety Date: Wed, 2 Oct 2024 12:43:49 +0200 Subject: [PATCH] feat: update event ID in election blade files The event ID for loading Nostr events in the election blade files for both admin and general user views have been updated to 32122. --- .../pages/association/election/[Election:year].blade.php | 4 ++-- .../association/election/admin/[Election:year].blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/pages/association/election/[Election:year].blade.php b/resources/views/pages/association/election/[Election:year].blade.php index b2085d8..3700e91 100644 --- a/resources/views/pages/association/election/[Election:year].blade.php +++ b/resources/views/pages/association/election/[Election:year].blade.php @@ -84,7 +84,7 @@ updated([ ]); $loadEvents = function () { - $this->events = $this->loadNostrEvents([32121]); + $this->events = $this->loadNostrEvents([32122]); }; $loadBoardEvents = function () { @@ -119,7 +119,7 @@ $vote = function ($pubkey, $type, $board = false) { return; } $note = new NostrEvent(); - $note->setKind($board ? 2121 : 32121); + $note->setKind($board ? 2121 : 32122); if (!$board) { $dTag = sprintf('%s,%s,%s', $this->currentPleb->pubkey, date('Y'), $type); $note->setTags([['d', $dTag]]); diff --git a/resources/views/pages/association/election/admin/[Election:year].blade.php b/resources/views/pages/association/election/admin/[Election:year].blade.php index b4d2346..71f92d7 100644 --- a/resources/views/pages/association/election/admin/[Election:year].blade.php +++ b/resources/views/pages/association/election/admin/[Election:year].blade.php @@ -124,7 +124,7 @@ $loadBoardVotes = function () { }; $loadEvents = function () { - $this->events = $this->loadNostrEvents([32121]); + $this->events = $this->loadNostrEvents([32122]); }; $loadBoardEvents = function () {