diff --git a/ProjectLighthouse.Servers.Website/Pages/Debug/VersionInfoPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/Debug/VersionInfoPage.cshtml index d8eff2a43..f5bec53d6 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Debug/VersionInfoPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Debug/VersionInfoPage.cshtml @@ -14,5 +14,4 @@

Branch: @VersionHelper.Branch

Build: @VersionHelper.Build

CommitHash: @VersionHelper.CommitHash

-

IsDirty: @VersionHelper.IsDirty

RepositoryUrl: @VersionHelper.RepositoryUrl

\ No newline at end of file diff --git a/ProjectLighthouse.Servers.Website/Pages/Layouts/BaseLayout.cshtml b/ProjectLighthouse.Servers.Website/Pages/Layouts/BaseLayout.cshtml index 14f147822..725b59455 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Layouts/BaseLayout.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Layouts/BaseLayout.cshtml @@ -158,26 +158,6 @@ - @if (!ServerStatics.IsDebug() && VersionHelper.IsDirty) - { -
-
- - @Model.Translate(BaseLayoutStrings.LicenseWarnTitle) -

- @Html.Raw(Model.Translate(BaseLayoutStrings.LicenseWarn1, - "GNU Affero General Public License v3.0")) -

-

- @Html.Raw(Model.Translate(BaseLayoutStrings.LicenseWarn2, - "git status", "", "")) -

-

- @Html.Raw(Model.Translate(BaseLayoutStrings.LicenseWarn3)) -

-
-
- } @if (ServerConfiguration.Instance.UserGeneratedContentLimits.ReadOnlyMode) {
@@ -234,10 +214,6 @@ Cannot Detect Source Code } - @if (VersionHelper.IsDirty) - { -

@Model.Translate(BaseLayoutStrings.GeneratedModified)

- }
@if (ServerStatics.IsDebug()) diff --git a/ProjectLighthouse/Helpers/VersionHelper.cs b/ProjectLighthouse/Helpers/VersionHelper.cs index 895c36f74..f6c07003e 100644 --- a/ProjectLighthouse/Helpers/VersionHelper.cs +++ b/ProjectLighthouse/Helpers/VersionHelper.cs @@ -19,7 +19,6 @@ public static class VersionHelper public static string EnvVer => $"{ServerConfiguration.Instance.Customization.EnvironmentName} {FullRevision}"; public static string FullVersion => $"Project Lighthouse {ServerConfiguration.Instance.Customization.EnvironmentName} {Branch}@{CommitHash} {Build}"; - public static bool IsDirty => ThisAssembly.Git.IsDirty; public static string RepositoryUrl => ThisAssembly.Git.RepositoryUrl; public const string Build = diff --git a/ProjectLighthouse/StartupTasks.cs b/ProjectLighthouse/StartupTasks.cs index 6777b5107..ec1730eb4 100644 --- a/ProjectLighthouse/StartupTasks.cs +++ b/ProjectLighthouse/StartupTasks.cs @@ -53,12 +53,6 @@ public static async Task Run(ServerType serverType) // Version info depends on ServerConfig Logger.Info($"You are running version {VersionHelper.FullVersion}", LogArea.Startup); - if (VersionHelper.IsDirty) - { - Logger.Warn("This is a modified version of Project Lighthouse. " + - "Please make sure you are properly disclosing the source code to any users who may be using this instance.", - LogArea.Startup); - } Logger.Info("Connecting to the database...", LogArea.Startup);