From a21bed488a70b03bf5cdc8a4ca648ee4fe80ba7c Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 20 Apr 2017 11:34:55 -0400 Subject: [PATCH] grrrr --- Project-Unite/Controllers/ForumController.cs | 2 -- 1 file changed, 2 deletions(-) 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)