mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
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:
commit
54d7a12263
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue