mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-26 17:54:28 +01:00
fix(streaming): async storage
This commit is contained in:
@@ -77,7 +77,7 @@ const streamingController: AppController = (c) => {
|
||||
const event = msg[2];
|
||||
|
||||
if (pubkey) {
|
||||
const policy = new MuteListPolicy(pubkey, Storages.admin);
|
||||
const policy = new MuteListPolicy(pubkey, await Storages.admin());
|
||||
const ok = await policy.call(event);
|
||||
if (ok[2] === false) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user