v0.3.14 - I think the admin api is finally working

This commit is contained in:
Your Name
2025-09-27 14:08:45 -04:00
parent ab378e14d1
commit c1c05991cf
4 changed files with 38 additions and 24 deletions

View File

@@ -978,9 +978,9 @@
// Subscribe to kind 23457 events (admin response events)
const subscription = relayPool.subscribeMany([url], [{
// kinds: [23457],
// authors: [getRelayPubkey()], // Only listen to responses from the relay
// "#p": [userPubkey], // Only responses directed to this user
kinds: [23457],
authors: [getRelayPubkey()], // Only listen to responses from the relay
"#p": [userPubkey], // Only responses directed to this user
limit: 50
}], {
onevent(event) {
@@ -2384,8 +2384,7 @@
pubkey: userPubkey,
created_at: Math.floor(Date.now() / 1000),
tags: [
["p", getRelayPubkey()],
["blacklist", "pubkey", testPubkey]
["p", getRelayPubkey()]
],
content: encrypted_content
};
@@ -2449,8 +2448,7 @@
pubkey: userPubkey,
created_at: Math.floor(Date.now() / 1000),
tags: [
["p", getRelayPubkey()],
["whitelist", "pubkey", testPubkey]
["p", getRelayPubkey()]
],
content: encrypted_content
};