mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
disable debuging features on release
This commit is contained in:
@@ -14,6 +14,7 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
namespace BirdsiteLive.Controllers
|
namespace BirdsiteLive.Controllers
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
public class DebugingController : Controller
|
public class DebugingController : Controller
|
||||||
{
|
{
|
||||||
private readonly InstanceSettings _instanceSettings;
|
private readonly InstanceSettings _instanceSettings;
|
||||||
@@ -80,7 +81,7 @@ namespace BirdsiteLive.Controllers
|
|||||||
type = "Create",
|
type = "Create",
|
||||||
actor = actor,
|
actor = actor,
|
||||||
published = nowString,
|
published = nowString,
|
||||||
to = new []{ to },
|
to = new[] { to },
|
||||||
//cc = new [] { "https://www.w3.org/ns/activitystreams#Public" },
|
//cc = new [] { "https://www.w3.org/ns/activitystreams#Public" },
|
||||||
apObject = new Note()
|
apObject = new Note()
|
||||||
{
|
{
|
||||||
@@ -93,7 +94,7 @@ namespace BirdsiteLive.Controllers
|
|||||||
|
|
||||||
// Unlisted
|
// Unlisted
|
||||||
to = new[] { to },
|
to = new[] { to },
|
||||||
cc = new [] { "https://www.w3.org/ns/activitystreams#Public" },
|
cc = new[] { "https://www.w3.org/ns/activitystreams#Public" },
|
||||||
|
|
||||||
//// Public
|
//// Public
|
||||||
//to = new[] { "https://www.w3.org/ns/activitystreams#Public" },
|
//to = new[] { "https://www.w3.org/ns/activitystreams#Public" },
|
||||||
@@ -125,6 +126,7 @@ namespace BirdsiteLive.Controllers
|
|||||||
return View("Index");
|
return View("Index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
public static class HtmlHelperExtensions
|
public static class HtmlHelperExtensions
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user