Skip to content

Commit

Permalink
Fix nip46 key
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Feb 7, 2024
1 parent 3fda024 commit 4c4f224
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dufflepud/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ def _get_handle_info(handle):

name, domain = m.groups()
res = req_json('get', f'https://{domain}/.well-known/nostr.json?name={name}') or {}
pubkey = res.get('names', {}).get(name)

return {
'relays': res.get('relays', {}).get(name),
'pubkey': res.get('names', {}).get(name),
'nip46': res.get('nip46', {}).get(name),
'pubkey': pubkey,
'relays': res.get('relays', {}).get(pubkey),
'nip46': res.get('nip46', {}).get(pubkey),
}


Expand Down

0 comments on commit 4c4f224

Please sign in to comment.