Skip to content

Commit

Permalink
Prevent displaying user/slot bio when privacy settings are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko committed Feb 27, 2024
1 parent 01e6fa1 commit c8f9087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c8f9087

Please sign in to comment.