fix(outbox): remove comment, use author pubkey

This commit is contained in:
P. Reis 2024-07-17 10:37:54 -03:00
parent aec2cd3b9f
commit cc51917d61

View file

@ -2,11 +2,11 @@ import { NStore } from '@nostrify/nostrify';
import { Conf } from '@/config.ts';
export async function getRelays(store: NStore, _pubkey: string): Promise<Set<string>> {
export async function getRelays(store: NStore, pubkey: string): Promise<Set<string>> {
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) {