mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 04:59:22 +00:00
Only add the client tag if the page is served over https
This commit is contained in:
parent
c2d5187efb
commit
641f570329
@ -15,7 +15,7 @@ export function useNostrPublish(): UseMutationResult<NostrEvent> {
|
||||
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]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user