mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-27 07:28:40 +00:00
Fix missing filtering, filter inconsistencies, and filter logging
This commit is contained in:
parent
a3022ff5b4
commit
27f0a81dc5
12 changed files with 40 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue