v0.3.14 - I think the admin api is finally working
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user