From 5c4641c6ae15092aac84381a581f6fc48209033c Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Thu, 27 Jan 2022 19:58:35 -0500 Subject: [PATCH] disable debuging features on release --- src/BirdsiteLive/Controllers/DebugingController.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/BirdsiteLive/Controllers/DebugingController.cs b/src/BirdsiteLive/Controllers/DebugingController.cs index 252486e..00accef 100644 --- a/src/BirdsiteLive/Controllers/DebugingController.cs +++ b/src/BirdsiteLive/Controllers/DebugingController.cs @@ -14,6 +14,7 @@ using Newtonsoft.Json; namespace BirdsiteLive.Controllers { + #if DEBUG public class DebugingController : Controller { private readonly InstanceSettings _instanceSettings; @@ -67,7 +68,7 @@ namespace BirdsiteLive.Controllers var noteGuid = Guid.NewGuid(); var noteId = $"https://{_instanceSettings.Domain}/users/{username}/statuses/{noteGuid}"; var noteUrl = $"https://{_instanceSettings.Domain}/@{username}/{noteGuid}"; - + var to = $"{actor}/followers"; var now = DateTime.UtcNow; @@ -80,12 +81,12 @@ namespace BirdsiteLive.Controllers type = "Create", actor = actor, published = nowString, - to = new []{ to }, + to = new[] { to }, //cc = new [] { "https://www.w3.org/ns/activitystreams#Public" }, apObject = new Note() { id = noteId, - summary = null, + summary = null, inReplyTo = null, published = nowString, url = noteUrl, @@ -93,7 +94,7 @@ namespace BirdsiteLive.Controllers // Unlisted to = new[] { to }, - cc = new [] { "https://www.w3.org/ns/activitystreams#Public" }, + cc = new[] { "https://www.w3.org/ns/activitystreams#Public" }, //// Public //to = new[] { "https://www.w3.org/ns/activitystreams#Public" }, @@ -125,6 +126,7 @@ namespace BirdsiteLive.Controllers return View("Index"); } } + #endif public static class HtmlHelperExtensions {