nip29: enable private groups.

This commit is contained in:
fiatjaf 2024-07-05 16:59:12 -03:00
parent 92b85c9483
commit ccdab0fa6b

View File

@ -146,15 +146,10 @@ var moderationActionFactories = map[int]func(*nostr.Event) (Action, error){
// disallow contradictions
if egs.Public && egs.Private {
return nil, fmt.Errorf("contradiction")
return nil, fmt.Errorf("contradiction: can't be public and private at the same time")
}
if egs.Open && egs.Closed {
return nil, fmt.Errorf("contradiction")
}
// TODO remove this once we start supporting private groups
if egs.Private {
return nil, fmt.Errorf("private groups not yet supported")
return nil, fmt.Errorf("contradiction: can't be open and closed at the same time")
}
return egs, nil