adjustments for updating nostr sdk to 0.0.5

(but some delays appear)
This commit is contained in:
Believethehype
2023-11-23 12:32:44 +01:00
parent 417acde9c4
commit f5c98d2c12
4 changed files with 11 additions and 6 deletions

View File

@@ -212,7 +212,8 @@ def fetch_user_metadata(sender, client) -> (str, str, str):
nip05 = ""
lud16 = ""
try:
profile_filter = Filter().kind(0).author(sender).limit(1)
pk = PublicKey.from_hex(sender)
profile_filter = Filter().kind(0).author(pk).limit(1)
events = client.get_events_of([profile_filter], timedelta(seconds=3))
if len(events) > 0:
ev = events[0]