mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
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:
parent
e8c5abedfd
commit
62c79c1180
@ -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"]));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user