Allow presence events in no-text rooms.

This commit is contained in:
mplorentz
2026-03-06 10:46:19 -05:00
parent 2a87182128
commit a3d20d4cdc
+2 -1
View File
@@ -325,7 +325,8 @@ 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 {
event.Kind != nostr.KindSimpleGroupLeaveRequest &&
event.Kind != 10312 /* hardcoded temporarily while NIP is hashed out */ {
return "blocked: this group does not allow text events"
}