|
|
|
@ -10,6 +10,7 @@ import { get, writable, type Writable } from 'svelte/store' |
|
|
|
import { base_relays, ndk } from './ndk' |
|
|
|
import { base_relays, ndk } from './ndk' |
|
|
|
import { repo_kind } from '$lib/kinds' |
|
|
|
import { repo_kind } from '$lib/kinds' |
|
|
|
import { |
|
|
|
import { |
|
|
|
|
|
|
|
aToNaddr, |
|
|
|
extractAReference, |
|
|
|
extractAReference, |
|
|
|
selectRepoFromCollection, |
|
|
|
selectRepoFromCollection, |
|
|
|
} from '$lib/components/repo/utils' |
|
|
|
} from '$lib/components/repo/utils' |
|
|
|
@ -49,6 +50,7 @@ export const ensureRepo = (a: string | NDKEvent): Writable<RepoEvent> => { |
|
|
|
...base, |
|
|
|
...base, |
|
|
|
identifier, |
|
|
|
identifier, |
|
|
|
author: pubkey, |
|
|
|
author: pubkey, |
|
|
|
|
|
|
|
naddr: aToNaddr(a_ref) || '', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const sub = ndk.subscribe( |
|
|
|
const sub = ndk.subscribe( |
|
|
|
|