Still serve group events even if groups are disabled
Docker / build-and-push-image (push) Successful in 3m0s
Docker / build-and-push-image (push) Successful in 3m0s
This commit is contained in:
@@ -248,10 +248,6 @@ func (g *GroupStore) IsGroupEvent(event nostr.Event) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *GroupStore) CanRead(pubkey nostr.PubKey, event nostr.Event) bool {
|
func (g *GroupStore) CanRead(pubkey nostr.PubKey, event nostr.Event) bool {
|
||||||
if !g.Config.Groups.Enabled {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
h := GetGroupIDFromEvent(event)
|
h := GetGroupIDFromEvent(event)
|
||||||
meta, found := g.GetMetadata(h)
|
meta, found := g.GetMetadata(h)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user