Accept claims if user is already a member

This commit is contained in:
Jon Staab
2025-10-31 15:59:21 -07:00
parent f010b97fef
commit da9110a9c7
3 changed files with 19 additions and 15 deletions
+4
View File
@@ -298,6 +298,10 @@ func (m *ManagementStore) AllowPubkey(pubkey nostr.PubKey) error {
// Joining // Joining
func (m *ManagementStore) ValidateJoinRequest(event nostr.Event) (reject bool, err string) { func (m *ManagementStore) ValidateJoinRequest(event nostr.Event) (reject bool, err string) {
if m.IsMember(event.PubKey) {
return false, ""
}
if m.PubkeyIsBanned(event.PubKey) { if m.PubkeyIsBanned(event.PubKey) {
return true, "invalid: you have been banned from this relay" return true, "invalid: you have been banned from this relay"
} }