summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/BugsController.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/BugsController.cs b/Project-Unite/Controllers/BugsController.cs
index 69a7fb8..c44f386 100644
--- a/Project-Unite/Controllers/BugsController.cs
+++ b/Project-Unite/Controllers/BugsController.cs
@@ -128,7 +128,14 @@ namespace Project_Unite.Controllers
db.ForumPosts.Add(comment);
db.Bugs.Add(bug);
db.SaveChanges();
+ NotificationDaemon.ScreamToDiscord($"A bug has been opened by {ACL.UserNameRaw(User.Identity.GetUserId())}", $@"**Title:** {bug.Name}
+**Version ID:** {bug.ReleaseId}
+**Species:** {bug.Species}
+**Urgency:** {bug.Urgency}
+**Author's description:**
+
+{comment.Body.Substring(Math.Min(comment.Body.Length, 128))}", Url.Action("ViewBug", new { id = bug.Id }));
return RedirectToAction("ViewBug", new { id = bug.Id });
}
}