disable debuging features on release
This commit is contained in:
parent
04b8cfa0e4
commit
5c4641c6ae
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
|
@ -67,7 +68,7 @@ namespace BirdsiteLive.Controllers
|
||||||
var noteGuid = Guid.NewGuid();
|
var noteGuid = Guid.NewGuid();
|
||||||
var noteId = $"https://{_instanceSettings.Domain}/users/{username}/statuses/{noteGuid}";
|
var noteId = $"https://{_instanceSettings.Domain}/users/{username}/statuses/{noteGuid}";
|
||||||
var noteUrl = $"https://{_instanceSettings.Domain}/@{username}/{noteGuid}";
|
var noteUrl = $"https://{_instanceSettings.Domain}/@{username}/{noteGuid}";
|
||||||
|
|
||||||
var to = $"{actor}/followers";
|
var to = $"{actor}/followers";
|
||||||
|
|
||||||
var now = DateTime.UtcNow;
|
var now = DateTime.UtcNow;
|
||||||
|
@ -80,12 +81,12 @@ 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()
|
||||||
{
|
{
|
||||||
id = noteId,
|
id = noteId,
|
||||||
summary = null,
|
summary = null,
|
||||||
inReplyTo = null,
|
inReplyTo = null,
|
||||||
published = nowString,
|
published = nowString,
|
||||||
url = noteUrl,
|
url = noteUrl,
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue