EditIdentity: only pull current user's pubkey
This commit is contained in:
parent
c02f23c322
commit
37816b0a8c
|
@ -29,11 +29,12 @@ const EditIdentity: React.FC<IEditIdentity> = () => {
|
||||||
const { relay, signer } = useNostr();
|
const { relay, signer } = useNostr();
|
||||||
|
|
||||||
const admin = instance.nostr?.pubkey;
|
const admin = instance.nostr?.pubkey;
|
||||||
|
const pubkey = account?.nostr?.pubkey;
|
||||||
const [username, setUsername] = useState<string>('');
|
const [username, setUsername] = useState<string>('');
|
||||||
|
|
||||||
const { events: labels } = useNostrReq(
|
const { events: labels } = useNostrReq(
|
||||||
admin
|
(admin && pubkey)
|
||||||
? [{ kinds: [1985], authors: [admin], '#L': ['nip05'] }]
|
? [{ kinds: [1985], authors: [admin], '#L': ['nip05'], '#p': [pubkey] }]
|
||||||
: [],
|
: [],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue