Add Livekit server integration

This commit is contained in:
mplorentz
2026-03-02 17:09:49 -05:00
parent d0520bbe3c
commit e8a042c776
8 changed files with 442 additions and 67 deletions
+7
View File
@@ -322,6 +322,13 @@ func (g *GroupStore) CheckWrite(event nostr.Event) string {
}
}
if HasTag(meta.Tags, "no-text") &&
!slices.Contains(nip29.ModerationEventKinds, event.Kind) &&
event.Kind != nostr.KindSimpleGroupJoinRequest &&
event.Kind != nostr.KindSimpleGroupLeaveRequest {
return "blocked: this group does not allow text events"
}
if HasTag(meta.Tags, "closed") && !g.HasAccess(h, event.PubKey) {
return "restricted: you are not a member of that group"
}