forked from coracle/zooid
Accept claims if user is already a member
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user