mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-25 12:30:35 +02:00
caching: also save into cache relays
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -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":
|
||||
|
Reference in New Issue
Block a user