Connect Nostr, integrate place photos #45

Merged
raucao merged 56 commits from feature/nostr_place_reviews into master 2026-04-22 09:32:00 +00:00
Showing only changes of commit f1ebafc1f0 - Show all commits

View File

@@ -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