From 875eee7a77e668bdd932034e8f5ef73dad276b8e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 19 Jun 2024 13:25:06 -0500 Subject: [PATCH] Avoid using the user's own relay list when publishing events Sadly I think these relays are causing Ditto to lock up and stop working. This sucks --- src/utils/outbox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/outbox.ts b/src/utils/outbox.ts index 72b83388..e5d7029c 100644 --- a/src/utils/outbox.ts +++ b/src/utils/outbox.ts @@ -2,11 +2,11 @@ import { NStore } from '@nostrify/nostrify'; import { Conf } from '@/config.ts'; -export async function getRelays(store: NStore, pubkey: string): Promise> { +export async function getRelays(store: NStore, _pubkey: string): Promise> { const relays = new Set<`wss://${string}`>(); const events = await store.query([ - { kinds: [10002], authors: [pubkey, Conf.pubkey], limit: 2 }, + { kinds: [10002], authors: [/*pubkey, */ Conf.pubkey], limit: 2 }, ]); for (const event of events) {