Viewer counts / start time
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using Nostr.Client.Json;
|
||||
using Nostr.Client.Messages;
|
||||
using NostrStreamer.Database;
|
||||
|
||||
@ -5,4 +7,8 @@ namespace NostrStreamer;
|
||||
|
||||
public static class Extensions
|
||||
{
|
||||
public static NostrEvent? GetNostrEvent(this User user)
|
||||
{
|
||||
return user.Event != default ? JsonConvert.DeserializeObject<NostrEvent>(user.Event, NostrSerializer.Settings) : null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user