Merge branch 'admin-skip-policy' into 'main'

pipeline: let ditto admin skip the policy

See merge request soapbox-pub/ditto!502
This commit is contained in:
Alex Gleason 2024-09-20 13:54:57 +00:00
commit 54d7a12263

View file

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