mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
remove useless code.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
7d5ab86756
commit
bcc5c46979
@ -62,7 +62,7 @@ module.exports = (ws, req) => {
|
||||
if (!authorized) return;
|
||||
if (!validateEvent(data[1]) || !verifySignature(data[1])) return ws.send(JSON.stringify(["NOTICE", "error: invalid event"]));
|
||||
if (data[1].kind == 22242) return ws.send(JSON.stringify(["OK", data[1]?.id, false, "rejected: kind 22242"]));
|
||||
console.log(approved_publishers?.length, approved_publishers?.includes(data[1].pubkey), verifySignature(data[1]))
|
||||
|
||||
if (
|
||||
approved_publishers?.length &&
|
||||
!approved_publishers?.includes(data[1].pubkey)
|
||||
|
Loading…
x
Reference in New Issue
Block a user