This commit is contained in:
parent
2cd43ee2d6
commit
00e724ffa4
@ -18,7 +18,8 @@ public class NostrServicesClient
|
||||
|
||||
public async Task<CompactProfile?> Profile(string id)
|
||||
{
|
||||
return await Get<CompactProfile>(HttpMethod.Get, $"https://nostr-rs.api.v0l.io/event/0/{id}");
|
||||
var ev = await Get<NostrEvent>(HttpMethod.Get, $"https://nostr-rs.api.v0l.io/event/0/{id}");
|
||||
return ev != default ? CompactProfile.FromNostrEvent(ev) : default;
|
||||
}
|
||||
|
||||
public async Task<NostrEvent?> Event(string id)
|
||||
|
Loading…
Reference in New Issue
Block a user