mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
bouncer: handle error on missing config field for blocked_publishers
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
ce0533cc6e
commit
f148914ed8
@ -71,7 +71,7 @@ module.exports = (ws, req, onClose) => {
|
||||
if (!authorized) return;
|
||||
if (!validateEvent(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"]));
|
||||
if (blocked_publishers.includes(data[1].pubkey)) return ws.send(JSON.stringify(["OK", data[1].id, false, "blocked: you are in the bouncer blocklist."]));
|
||||
if (blocked_publishers?.includes(data[1].pubkey)) return ws.send(JSON.stringify(["OK", data[1].id, false, "blocked: you are in the bouncer blocklist."]));
|
||||
|
||||
if (
|
||||
approved_publishers?.length &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user