From 6c9bdb2ccd223ef64d3a83fe6494a06241810c4a Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 25 Mar 2026 15:21:04 -0700 Subject: [PATCH] Detect blossom support using supported_nips --- src/app/core/commands.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/core/commands.ts b/src/app/core/commands.ts index cda0414a..76a3e3fa 100644 --- a/src/app/core/commands.ts +++ b/src/app/core/commands.ts @@ -75,6 +75,7 @@ import { getThunkError, addRoomMember, manageRelay, + getRelay, } from "@welshman/app" import {compressFile} from "@lib/html" import type {SettingsValues, SpaceNotificationSettings} from "@app/core/state" @@ -553,6 +554,12 @@ export const createInvoice = async ({ export const normalizeBlossomUrl = (url: string) => normalizeUrl(url.replace(/^ws/, "http")) export const fetchHasBlossomSupport = async (url: string) => { + const relay = getRelay(url) + + if (relay?.supported_nips?.map(String).includes("BUD-02")) { + return true + } + const server = normalizeBlossomUrl(url) const $signer = signer.get() || Nip01Signer.ephemeral() const headers: Record = {