mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-31 01:08:41 +00:00
Revert "Rename ServerConfiguration.WebsiteConfiguration to Website"
This reverts commit 7a2f99291d
.
This commit is contained in:
parent
7a2f99291d
commit
96ed3cfad2
6 changed files with 6 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
|||
bool showLink = (bool?)ViewData["ShowLink"] ?? false;
|
||||
|
||||
string iconHash = Model.IconHash;
|
||||
if (string.IsNullOrWhiteSpace(iconHash) || iconHash.StartsWith('g')) iconHash = ServerConfiguration.Instance.Website.MissingIconHash;
|
||||
if (string.IsNullOrWhiteSpace(iconHash) || iconHash.StartsWith('g')) iconHash = ServerConfiguration.Instance.WebsiteConfiguration.MissingIconHash;
|
||||
}
|
||||
<div class="card">
|
||||
@{
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
if (string.IsNullOrWhiteSpace(faceHash))
|
||||
{
|
||||
faceHash = ServerConfiguration.Instance.Website.MissingIconHash;
|
||||
faceHash = ServerConfiguration.Instance.WebsiteConfiguration.MissingIconHash;
|
||||
}
|
||||
|
||||
string faceAlt = review.Thumb switch {
|
||||
|
|
|
@ -203,7 +203,7 @@ internal class LegacyServerSettings
|
|||
ProfileCommentsEnabled = this.ProfileCommentsEnabled,
|
||||
};
|
||||
|
||||
configuration.Website = new WebsiteConfiguration
|
||||
configuration.WebsiteConfiguration = new WebsiteConfiguration
|
||||
{
|
||||
MissingIconHash = this.MissingIconHash,
|
||||
ConvertAssetsOnStartup = this.ConvertAssetsOnStartup,
|
||||
|
|
|
@ -195,6 +195,6 @@ public class ServerConfiguration
|
|||
public InfluxDBConfiguration InfluxDB { get; set; } = new();
|
||||
public MailConfiguration Mail { get; set; } = new();
|
||||
public UserGeneratedContentLimitConfiguration UserGeneratedContentLimits { get; set; } = new();
|
||||
public WebsiteConfiguration Website { get; set; } = new();
|
||||
public WebsiteConfiguration WebsiteConfiguration { get; set; } = new();
|
||||
public CustomizationConfiguration Customization { get; set; } = new();
|
||||
}
|
|
@ -64,7 +64,7 @@ public class User
|
|||
if (string.IsNullOrWhiteSpace(avatarHash) || this.IconHash.StartsWith('g')) avatarHash = this.YayHash;
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = this.MehHash;
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = this.BooHash;
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = ServerConfiguration.Instance.Website.MissingIconHash;
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = ServerConfiguration.Instance.WebsiteConfiguration.MissingIconHash;
|
||||
|
||||
return avatarHash;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ public static class StartupTasks
|
|||
return;
|
||||
}
|
||||
|
||||
if (ServerConfiguration.Instance.Website.ConvertAssetsOnStartup
|
||||
if (ServerConfiguration.Instance.WebsiteConfiguration.ConvertAssetsOnStartup
|
||||
&& serverType == ServerType.Website)
|
||||
{
|
||||
FileHelper.ConvertAllTexturesToPng();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue