Fix default blossom server, move to constant

This commit is contained in:
2026-04-20 14:06:41 +04:00
parent 10501b64bd
commit f1ebafc1f0

View File

@@ -6,6 +6,8 @@ import { on } from '@ember/modifier';
import { EventFactory } from 'applesauce-core'; import { EventFactory } from 'applesauce-core';
import Geohash from 'latlon-geohash'; import Geohash from 'latlon-geohash';
const DEFAULT_BLOSSOM_SERVER = 'https://blossom.nostr.build';
function bufferToHex(buffer) { function bufferToHex(buffer) {
return Array.from(new Uint8Array(buffer)) return Array.from(new Uint8Array(buffer))
.map((b) => b.toString(16).padStart(2, '0')) .map((b) => b.toString(16).padStart(2, '0'))
@@ -33,7 +35,7 @@ export default class PlacePhotoUpload extends Component {
} }
get blossomServer() { get blossomServer() {
return this.nostrData.blossomServers[0] || 'https://nostr.build'; return this.nostrData.blossomServers[0] || DEFAULT_BLOSSOM_SERVER;
} }
@action @action