From 635b317d73195b52c198cdc5bced03ca0c40aa29 Mon Sep 17 00:00:00 2001 From: Yonle Date: Tue, 19 Dec 2023 23:48:24 +0700 Subject: [PATCH] caching: also save into cache relays Signed-off-by: Yonle --- bouncer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bouncer.js b/bouncer.js index eb0269e..1dc1b1c 100644 --- a/bouncer.js +++ b/bouncer.js @@ -61,7 +61,8 @@ module.exports = (ws, req) => { 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"])); ws.my_events.add(data[1]); - bc(data, ws.id); + direct_bc(data, ws.id); + cache_bc(data, ws.id); ws.send(JSON.stringify(["OK", data[1]?.id, true, ""])); break; case "REQ":