bouncer: bugfix of EVENT write did not work due to lack of allowed_publishers check.

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle 2024-05-11 11:34:55 +07:00
parent e8c5abedfd
commit 62c79c1180

View File

@ -92,6 +92,7 @@ function handleConnection(ws, req) {
}
if (
allowed_publishers?.length &&
!allowed_publishers?.includes(data[1].pubkey)
) return ws.send(JSON.stringify(["OK", data[1]?.id, false, "rejected: unauthorized"]));