pipeline: let ditto admin skip the policy

This commit is contained in:
Alex Gleason 2024-09-19 21:57:59 -05:00
parent cc2b5cf66a
commit 5dca8d4950
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -48,7 +48,7 @@ async function handleEvent(event: DittoEvent, signal: AbortSignal): Promise<void
throw new RelayError('invalid', 'protected event'); throw new RelayError('invalid', 'protected event');
} }
if (event.kind !== 24133) { if (event.kind !== 24133 && event.pubkey !== Conf.pubkey) {
await policyFilter(event); await policyFilter(event);
} }