mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-28 17:44:24 +01:00
Stop querying the pool
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import * as client from '@/client.ts';
|
||||
import * as eventsDB from '@/db/events.ts';
|
||||
import { type Event, type Filter, findReplyTag } from '@/deps.ts';
|
||||
import * as mixer from '@/mixer.ts';
|
||||
@@ -80,13 +79,6 @@ async function isLocallyFollowed(pubkey: string): Promise<boolean> {
|
||||
return Boolean(event);
|
||||
}
|
||||
|
||||
/** Sync the user's state from other relays. */
|
||||
async function syncUser(pubkey: string): Promise<void> {
|
||||
await client.getFilters([
|
||||
{ authors: [pubkey], kinds: [0, 3, 10000, 10001, 10002] },
|
||||
], { timeout: 5000 });
|
||||
}
|
||||
|
||||
export {
|
||||
getAncestors,
|
||||
getAuthor,
|
||||
@@ -96,5 +88,4 @@ export {
|
||||
getFollowedPubkeys,
|
||||
getFollows,
|
||||
isLocallyFollowed,
|
||||
syncUser,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user