mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Uppercase CustomPolicy
This commit is contained in:
parent
ecfea827e1
commit
46b5bbf841
1 changed files with 2 additions and 3 deletions
|
|
@ -61,8 +61,8 @@ async function policyFilter(event: NostrEvent): Promise<void> {
|
|||
];
|
||||
|
||||
try {
|
||||
const customPolicy = (await import('../data/policy.ts')).default;
|
||||
policies.push(new customPolicy());
|
||||
const CustomPolicy = (await import('../data/policy.ts')).default;
|
||||
policies.push(new CustomPolicy());
|
||||
} catch (_e) {
|
||||
debug('policy not found - https://docs.soapbox.pub/ditto/policies/');
|
||||
}
|
||||
|
|
@ -71,7 +71,6 @@ async function policyFilter(event: NostrEvent): Promise<void> {
|
|||
|
||||
const result = await policy.call(event);
|
||||
debug(JSON.stringify(result));
|
||||
|
||||
RelayError.assert(result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue