From f1ebafc1f02b38779eb4b5bd4f18891040fe76b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 20 Apr 2026 14:06:41 +0400 Subject: [PATCH] Fix default blossom server, move to constant --- app/components/place-photo-upload.gjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/place-photo-upload.gjs b/app/components/place-photo-upload.gjs index 1acc8b3..2a40ee3 100644 --- a/app/components/place-photo-upload.gjs +++ b/app/components/place-photo-upload.gjs @@ -6,6 +6,8 @@ import { on } from '@ember/modifier'; import { EventFactory } from 'applesauce-core'; import Geohash from 'latlon-geohash'; +const DEFAULT_BLOSSOM_SERVER = 'https://blossom.nostr.build'; + function bufferToHex(buffer) { return Array.from(new Uint8Array(buffer)) .map((b) => b.toString(16).padStart(2, '0')) @@ -33,7 +35,7 @@ export default class PlacePhotoUpload extends Component { } get blossomServer() { - return this.nostrData.blossomServers[0] || 'https://nostr.build'; + return this.nostrData.blossomServers[0] || DEFAULT_BLOSSOM_SERVER; } @action