message returned for bans as blocked:

This commit is contained in:
0ceanSlim 2024-08-16 09:47:31 -04:00
parent 784b22ccf4
commit cd69d52c92

View File

@ -42,7 +42,7 @@ func CheckBlacklist(pubkey, eventContent string) (bool, string) {
if err != nil { if err != nil {
return true, fmt.Sprintf("pubkey %s is permanently banned and failed to save: %v", pubkey, err) return true, fmt.Sprintf("pubkey %s is permanently banned and failed to save: %v", pubkey, err)
} }
return true, fmt.Sprintf("pubkey %s is permanently banned for containing forbidden words", pubkey) return true, "blocked: pubkey is permanently banned"
} }
} }
@ -53,7 +53,7 @@ func CheckBlacklist(pubkey, eventContent string) (bool, string) {
if err != nil { if err != nil {
return true, fmt.Sprintf("pubkey %s is temporarily banned and failed to save: %v", pubkey, err) return true, fmt.Sprintf("pubkey %s is temporarily banned and failed to save: %v", pubkey, err)
} }
return true, fmt.Sprintf("pubkey %s is temporarily banned for containing forbidden words", pubkey) return true, "blocked: pubkey is temporarily banned"
} }
} }