Prevent displaying user/slot bio when privacy settings are enabled

This commit is contained in:
sudokoko 2024-02-27 15:52:54 -05:00
commit c8f9087501
No known key found for this signature in database
GPG key ID: 248D68C664937395
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
Model.ShowTitleInPage = false;
Model.Title = HttpUtility.HtmlDecode(Model.Slot?.Name ?? "");
Model.Description = HttpUtility.HtmlDecode(Model.Slot?.Description ?? "");
if (Model.CanViewSlot) Model.Description = HttpUtility.HtmlDecode(Model.Slot?.Description ?? "");
bool isMobile = Request.IsMobile();
string language = Model.GetLanguage();

View file

@ -13,7 +13,7 @@
Model.ShowTitleInPage = false;
Model.Title = Model.Translate(ProfileStrings.Title, Model.ProfileUser!.Username);
Model.Description = Model.ProfileUser!.Biography;
if (Model.CanViewProfile) Model.Description = Model.ProfileUser!.Biography;
bool isMobile = Request.IsMobile();
string language = Model.GetLanguage();