fix: cache relay profile imports
This commit is contained in:
parent
916959e0e1
commit
fb3559eb84
@ -31,7 +31,15 @@ public class CacheRelay : INostrRelay, IDisposable
|
||||
{
|
||||
if (RelayListener.AcceptedKinds.Contains(ev.Kind))
|
||||
{
|
||||
await _redisStore.StoreEvent(CompactEvent.FromNostrEvent(ev));
|
||||
if (ev.Kind is NostrKind.Metadata)
|
||||
{
|
||||
await _redisStore.StoreProfile(CompactProfile.FromNostrEvent(ev)!);
|
||||
}
|
||||
else
|
||||
{
|
||||
await _redisStore.StoreEvent(CompactEvent.FromNostrEvent(ev));
|
||||
}
|
||||
|
||||
return new(true, null);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user