Mutiny Address

use check_lnurl_name

update to rc1

use env vars

set nip05 if not set

update to rc2

public zaps

use privacy_level in activity item

get profile from nostr if not a contact

rc3, update env vars and use them for domain

async nostr things
This commit is contained in:
benthecarman
2024-03-26 10:53:18 -05:00
committed by Paul Miller
parent bdb0611e81
commit c313debd34
18 changed files with 533 additions and 100 deletions

View File

@@ -1,5 +1,5 @@
import { MutinyWallet } from "@mutinywallet/mutiny-wasm";
import { useNavigate } from "@solidjs/router";
import { createAsync, useNavigate } from "@solidjs/router";
import { Search } from "lucide-solid";
import {
createEffect,
@@ -40,10 +40,9 @@ export function NostrActivity() {
const i18n = useI18n();
const [state, _actions] = useMegaStore();
const [data, { refetch }] = createResource(
state.mutiny_wallet?.get_npub(),
fetchZaps
);
const npub = createAsync(async () => state.mutiny_wallet?.get_npub());
const [data, { refetch }] = createResource(npub, fetchZaps);
function nameFromHexpub(hexpub: string): string {
const profile = data.latest?.profiles[hexpub];