mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
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.
This commit is contained in:
@@ -84,7 +84,7 @@ updated([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$loadEvents = function () {
|
$loadEvents = function () {
|
||||||
$this->events = $this->loadNostrEvents([32121]);
|
$this->events = $this->loadNostrEvents([32122]);
|
||||||
};
|
};
|
||||||
|
|
||||||
$loadBoardEvents = function () {
|
$loadBoardEvents = function () {
|
||||||
@@ -119,7 +119,7 @@ $vote = function ($pubkey, $type, $board = false) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$note = new NostrEvent();
|
$note = new NostrEvent();
|
||||||
$note->setKind($board ? 2121 : 32121);
|
$note->setKind($board ? 2121 : 32122);
|
||||||
if (!$board) {
|
if (!$board) {
|
||||||
$dTag = sprintf('%s,%s,%s', $this->currentPleb->pubkey, date('Y'), $type);
|
$dTag = sprintf('%s,%s,%s', $this->currentPleb->pubkey, date('Y'), $type);
|
||||||
$note->setTags([['d', $dTag]]);
|
$note->setTags([['d', $dTag]]);
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ $loadBoardVotes = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$loadEvents = function () {
|
$loadEvents = function () {
|
||||||
$this->events = $this->loadNostrEvents([32121]);
|
$this->events = $this->loadNostrEvents([32122]);
|
||||||
};
|
};
|
||||||
|
|
||||||
$loadBoardEvents = function () {
|
$loadBoardEvents = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user