refactor: replace nip96 with blossom

feat: blossom fallback image loader
This commit is contained in:
2025-05-06 17:24:41 +01:00
parent d4115e9073
commit 4e5feede23
16 changed files with 267 additions and 278 deletions

View File

@ -107,7 +107,7 @@ export class MultiAccountStore extends ExternalStore<LoginSession> {
},
stateObj,
);
stateClass.checkIsStandardList(EventKind.StorageServerList); // track nip96 list
stateClass.checkIsStandardList(EventKind.BlossomServerList); // track blossom list
stateClass.on("change", () => this.#save());
if (v.state instanceof UserState) {
v.state.destroy();
@ -194,7 +194,7 @@ export class MultiAccountStore extends ExternalStore<LoginSession> {
stalker: stalker ?? false,
} as LoginSession;
newSession.state!.checkIsStandardList(EventKind.StorageServerList); // track nip96 list
newSession.state!.checkIsStandardList(EventKind.BlossomServerList); // track blossom list
newSession.state!.on("change", () => this.#save());
const pub = createPublisher(newSession);
if (pub) {
@ -243,7 +243,7 @@ export class MultiAccountStore extends ExternalStore<LoginSession> {
appdataId: "snort",
}),
} as LoginSession;
newSession.state!.checkIsStandardList(EventKind.StorageServerList); // track nip96 list
newSession.state!.checkIsStandardList(EventKind.BlossomServerList); // track blossom list
newSession.state!.on("change", () => this.#save());
if ("nostr_os" in window && window?.nostr_os) {