disable debuging features on release

This commit is contained in:
Nicolas Constant 2022-01-27 19:58:35 -05:00
parent 04b8cfa0e4
commit 5c4641c6ae
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -14,6 +14,7 @@ using Newtonsoft.Json;
namespace BirdsiteLive.Controllers
{
#if DEBUG
public class DebugingController : Controller
{
private readonly InstanceSettings _instanceSettings;
@ -80,7 +81,7 @@ 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()
{
@ -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
{