Add default feed loader to app

This commit is contained in:
Jon Staab
2024-10-09 09:48:08 -07:00
parent cabeba4533
commit 6e24f49384
9 changed files with 112 additions and 7 deletions
+4 -2
View File
@@ -108,5 +108,7 @@ export const deriveHandleForPubkey = (pubkey: string, request: Partial<Subscribe
}
)
export const displayHandle = (handle: Handle) =>
handle.nip05.startsWith("_@") ? last(handle.nip05.split("@")) : handle.nip05
export const displayNip05 = (nip05: string) =>
(nip05?.startsWith("_@") ? last(nip05.split("@")) : nip05)
export const displayHandle = (handle: Handle) => displayNip05(handle.nip05)