From 641f570329dacb37d42e20e59e384d29d07c8439 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 7 Jun 2025 16:32:28 -0500 Subject: [PATCH] Only add the client tag if the page is served over https --- src/hooks/useNostrPublish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useNostrPublish.ts b/src/hooks/useNostrPublish.ts index 767dfa4..b9a3bc2 100644 --- a/src/hooks/useNostrPublish.ts +++ b/src/hooks/useNostrPublish.ts @@ -15,7 +15,7 @@ export function useNostrPublish(): UseMutationResult { const tags = t.tags ?? []; // Add the client tag if it doesn't exist - if (!tags.some((tag) => tag[0] === "client")) { + if (location.protocol === "https:" && !tags.some(([name]) => name === "client")) { tags.push(["client", location.hostname]); }