Purify event before sending to pool

This commit is contained in:
Alex Gleason 2025-02-23 14:50:45 -06:00
parent e99496306a
commit e88a7d01d4
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -111,7 +111,7 @@ export class DittoAPIStore implements NRelay {
(async () => { (async () => {
try { try {
await pool.event(event, opts); await pool.event(purifyEvent(event), opts);
} catch (e) { } catch (e) {
logi({ level: 'error', ns: this.ns, source: 'publish', id, kind, error: errorJson(e) }); logi({ level: 'error', ns: this.ns, source: 'publish', id, kind, error: errorJson(e) });
} }