diff --git a/DysonNetwork.Zone/Pages/About.cshtml b/DysonNetwork.Zone/Pages/About.cshtml index a6a307e..fa4705b 100644 --- a/DysonNetwork.Zone/Pages/About.cshtml +++ b/DysonNetwork.Zone/Pages/About.cshtml @@ -15,29 +15,21 @@ if (Model.UserAccount != null) { pageTitle = $"About {Model.UserAccount.Nick ?? Model.UserAccount.Name}"; - if (!string.IsNullOrWhiteSpace(Model.UserAccount.Profile?.Bio)) - { - pageDescription = Model.UserAccount.Profile.Bio; - } - else - { - pageDescription = $"Profile of {Model.UserAccount.Nick ?? Model.UserAccount.Name} on {siteName}"; - } - + pageDescription = !string.IsNullOrWhiteSpace(Model.UserAccount.Profile?.Bio) ? Model.UserAccount.Profile.Bio : $"Profile of {Model.UserAccount.Nick ?? Model.UserAccount.Name} on {siteName}"; + ogType = "profile"; - ogImageUrl = Model.UserPictureUrl; - if(!string.IsNullOrEmpty(ogImageUrl) && !ogImageUrl.StartsWith("http")) - { + ogImageUrl = Model.UserBackgroundUrl; + if (!string.IsNullOrEmpty(ogImageUrl) && !ogImageUrl.StartsWith("http")) ogImageUrl = $"{Request.Scheme}://{Request.Host}{ogImageUrl}"; - } } else if (Model.Site != null) { pageTitle = $"About {Model.Site.Name}"; - if(!string.IsNullOrWhiteSpace(Model.Site.Description)) + if (!string.IsNullOrWhiteSpace(Model.Site.Description)) { pageDescription = Model.Site.Description; } + ogType = "website"; ogImageUrl = null; } @@ -46,29 +38,31 @@ { pageDescription = pageDescription.Substring(0, 157) + "..."; } + + ViewData["Title"] = $"{pageTitle} - {siteName}"; } @section Head { -
Proudly powered by the Solar Network Pages
Hosted on the Solar Network
-Networking with Cloudflare
+Network powered by Cloudflare
Therefore, if the site is down, 99% is Cloudflare's fault