This commit is contained in:
Michael 2017-04-20 11:34:55 -04:00
parent daf9785bae
commit a21bed488a

View file

@ -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)