mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 07:58: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
|
@ -55,9 +55,12 @@ public class UserSettingsPage : BaseLayout
|
|||
if (ServerConfiguration.Instance.UserGeneratedContentLimits.ReadOnlyMode)
|
||||
return this.Redirect($"~/user/{userId}");
|
||||
|
||||
biography = CensorHelper.FilterMessage(biography);
|
||||
if (this.ProfileUser.Biography != biography && biography.Length <= 512)
|
||||
this.ProfileUser.Biography = biography;
|
||||
{
|
||||
string filteredBio = CensorHelper.FilterMessage(biography, "user biography", this.ProfileUser.Username);
|
||||
|
||||
this.ProfileUser.Biography = filteredBio;
|
||||
}
|
||||
}
|
||||
|
||||
if (ServerConfiguration.Instance.Mail.MailEnabled &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue