mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Prevent displaying user/slot bio when privacy settings are enabled
This commit is contained in:
parent
01e6fa191a
commit
c8f9087501
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue