Skip to content

Commit e37ea23

Browse files
committed
groups: stop appending undefined tags to edit-metadata.
1 parent 3c4cb53 commit e37ea23

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

group.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,9 @@ write your forum post
787787
evt.Tags = append(evt.Tags, nostr.Tag{"about", group.About})
788788
if group.Restricted {
789789
evt.Tags = append(evt.Tags, nostr.Tag{"restricted"})
790-
} else {
791-
evt.Tags = append(evt.Tags, nostr.Tag{"unrestricted"})
792790
}
793791
if group.Closed {
794792
evt.Tags = append(evt.Tags, nostr.Tag{"closed"})
795-
} else {
796-
evt.Tags = append(evt.Tags, nostr.Tag{"open"})
797793
}
798794
if group.Hidden {
799795
evt.Tags = append(evt.Tags, nostr.Tag{"hidden"})
@@ -802,13 +798,9 @@ write your forum post
802798
}
803799
if group.Private {
804800
evt.Tags = append(evt.Tags, nostr.Tag{"private"})
805-
} else {
806-
evt.Tags = append(evt.Tags, nostr.Tag{"public"})
807801
}
808802
if group.LiveKit {
809803
evt.Tags = append(evt.Tags, nostr.Tag{"livekit"})
810-
} else {
811-
evt.Tags = append(evt.Tags, nostr.Tag{"no-livekit"})
812804
}
813805
if group.SupportedKinds != nil {
814806
tag := make(nostr.Tag, 1, 1+len(group.SupportedKinds))

0 commit comments

Comments
 (0)