From 558d59ce88bfd49e22351951734c6881e3b29dce Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 18 Feb 2026 15:54:14 -0800 Subject: [PATCH] Enable auth for relays we're publishing to --- src/app/util/policies.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/util/policies.ts b/src/app/util/policies.ts index 0feb450a..07830f11 100644 --- a/src/app/util/policies.ts +++ b/src/app/util/policies.ts @@ -15,7 +15,7 @@ import { isClientNegOpen, isClientNegClose, } from "@welshman/net" -import {sign, pubkey, getPubkeyRelays} from "@welshman/app" +import {sign, pubkey, thunks, getPubkeyRelays} from "@welshman/app" import { BLOCKED_RELAYS, userSettingsValues, @@ -36,6 +36,7 @@ export const authPolicy = makeSocketPolicyAuth({ if (mode === RelayAuthMode.Aggressive) return true if (get(userSpaceUrls).includes(socket.url)) return true if (getPubkeyRelays($pubkey).includes(socket.url)) return true + if (get(thunks).some(t => t.options.relays.includes(socket.url))) return true if (getPubkeyRelays($pubkey, RelayMode.Messaging).includes(socket.url)) return true return false