Refactor some code that uses getFilters to import the whole module under a namespace

This commit is contained in:
Alex Gleason
2023-08-17 15:41:27 -05:00
parent 4f9b5c1431
commit 299a1a0db0
4 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import { type AppController } from '@/app.ts';
import { type Filter, findReplyTag, z } from '@/deps.ts';
import { publish } from '@/client.ts';
import { getFilters } from '@/mixer.ts';
import * as mixer from '@/mixer.ts';
import { getAuthor, getFollows } from '@/queries.ts';
import { jsonMetaContentSchema } from '@/schemas/nostr.ts';
import { signEvent } from '@/sign.ts';
@@ -117,7 +117,7 @@ const accountStatusesController: AppController = async (c) => {
filter['#t'] = [tagged];
}
let events = await getFilters([filter]);
let events = await mixer.getFilters([filter]);
events.sort(eventDateComparator);
if (exclude_replies) {