From cd69d52c92c0ece8579fde97e5334560cbe11dd0 Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Fri, 16 Aug 2024 09:47:31 -0400 Subject: [PATCH] message returned for bans as blocked: --- server/utils/checkBlacklist.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/utils/checkBlacklist.go b/server/utils/checkBlacklist.go index 7995e6a..4112100 100644 --- a/server/utils/checkBlacklist.go +++ b/server/utils/checkBlacklist.go @@ -42,7 +42,7 @@ func CheckBlacklist(pubkey, eventContent string) (bool, string) { 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 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 { 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" } }