If groups are disabled, treat h tagged events as regular events
Docker / build-and-push-image (push) Successful in 2m58s
Docker / build-and-push-image (push) Successful in 2m58s
This commit is contained in:
@@ -227,6 +227,10 @@ func (g *GroupStore) HasAccess(h string, pubkey nostr.PubKey) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *GroupStore) IsGroupEvent(event nostr.Event) bool {
|
func (g *GroupStore) IsGroupEvent(event nostr.Event) bool {
|
||||||
|
if !g.Config.Groups.Enabled {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if slices.Contains(nip29.MetadataEventKinds, event.Kind) {
|
if slices.Contains(nip29.MetadataEventKinds, event.Kind) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user