diff --git a/Project-Unite/Controllers/ForumController.cs b/Project-Unite/Controllers/ForumController.cs index 449186a..69c136a 100644 --- a/Project-Unite/Controllers/ForumController.cs +++ b/Project-Unite/Controllers/ForumController.cs @@ -325,8 +325,6 @@ public ActionResult ViewTopic(string id, int page = 1, bool triedtolikeownpost = { int realpage = page - 1; int pageSize = 10; - if (triedtolikeowntopic) - ViewBag.Error = "You cannot like or dislike your own topic!"; var db = new ApplicationDbContext(); var topic = db.ForumTopics.FirstOrDefault(x => x.Discriminator == id); if (topic == null)