From 54eadbe393209f8716b71972e4b80b0217fbfa38 Mon Sep 17 00:00:00 2001 From: Miss Pasture Date: Wed, 16 Jun 2021 17:57:56 -0400 Subject: [PATCH] add +pasture to version string --- src/BirdsiteLive/Controllers/WellKnownController.cs | 5 ++--- src/BirdsiteLive/Program.cs | 2 ++ src/BirdsiteLive/Views/Shared/_Layout.cshtml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/BirdsiteLive/Controllers/WellKnownController.cs b/src/BirdsiteLive/Controllers/WellKnownController.cs index 501f783..5b80abb 100644 --- a/src/BirdsiteLive/Controllers/WellKnownController.cs +++ b/src/BirdsiteLive/Controllers/WellKnownController.cs @@ -59,7 +59,6 @@ namespace BirdsiteLive.Controllers [Route("/nodeinfo/{id}.json")] public async Task NodeInfo(string id) { - var version = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3); var twitterUsersCount = await _twitterUserDal.GetTwitterUsersCountAsync(); var isOpenRegistration = _moderationRepository.GetModerationType(ModerationEntityTypeEnum.Follower) != ModerationTypeEnum.WhiteListing; @@ -79,7 +78,7 @@ namespace BirdsiteLive.Controllers software = new Software() { name = "birdsitelive", - version = version + version = Program.VERSION }, protocols = new[] { @@ -114,7 +113,7 @@ namespace BirdsiteLive.Controllers software = new SoftwareV21() { name = "birdsitelive", - version = version, + version = Program.VERSION, repository = "https://github.com/NicolasConstant/BirdsiteLive" }, protocols = new[] diff --git a/src/BirdsiteLive/Program.cs b/src/BirdsiteLive/Program.cs index d238b02..04c704f 100644 --- a/src/BirdsiteLive/Program.cs +++ b/src/BirdsiteLive/Program.cs @@ -14,6 +14,8 @@ namespace BirdsiteLive { public class Program { + public static string VERSION = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3) + "+pasture"; + public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); diff --git a/src/BirdsiteLive/Views/Shared/_Layout.cshtml b/src/BirdsiteLive/Views/Shared/_Layout.cshtml index 9e0d522..bfcdc77 100644 --- a/src/BirdsiteLive/Views/Shared/_Layout.cshtml +++ b/src/BirdsiteLive/Views/Shared/_Layout.cshtml @@ -49,7 +49,7 @@ Source code (AGPLv3) @*Privacy*@ - BirdsiteLIVE @System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3) + BirdsiteLIVE @Program.VERSION