mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-18 03:22:22 +02:00
nip29: move relay-specific stuff to nip29/relay
This commit is contained in:
@@ -2,7 +2,6 @@ package nip29
|
||||
|
||||
import (
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"golang.org/x/exp/maps"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
@@ -25,7 +24,15 @@ const (
|
||||
|
||||
type KindRange []int
|
||||
|
||||
var ModerationEventKinds = KindRange(maps.Keys(moderationActionFactories))
|
||||
var ModerationEventKinds = KindRange{
|
||||
nostr.KindSimpleGroupAddUser,
|
||||
nostr.KindSimpleGroupRemoveUser,
|
||||
nostr.KindSimpleGroupEditMetadata,
|
||||
nostr.KindSimpleGroupAddPermission,
|
||||
nostr.KindSimpleGroupRemovePermission,
|
||||
nostr.KindSimpleGroupDeleteEvent,
|
||||
nostr.KindSimpleGroupEditGroupStatus,
|
||||
}
|
||||
|
||||
var MetadataEventKinds = KindRange{
|
||||
nostr.KindSimpleGroupMetadata,
|
||||
|
Reference in New Issue
Block a user