Fix missing filtering, filter inconsistencies, and filter logging

This commit is contained in:
FeTetra 2024-11-13 21:12:55 -05:00
commit 27f0a81dc5
12 changed files with 40 additions and 40 deletions

View file

@ -73,11 +73,7 @@ public class SlotPageController : ControllerBase
}
string username = await this.database.UsernameFromWebToken(token);
string filteredText = CensorHelper.FilterMessage(msg);
if (ServerConfiguration.Instance.LogChatFiltering && filteredText != msg)
Logger.Info($"Censored profane word(s) from slot comment sent by {username}: \"{msg}\" => \"{filteredText}\"",
LogArea.Filter);
string filteredText = CensorHelper.FilterMessage(msg, "slot comment", username);
bool success = await this.database.PostComment(token.UserId, id, CommentType.Level, filteredText);
if (success)