mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
grrrr
This commit is contained in:
parent
daf9785bae
commit
a21bed488a
1 changed files with 0 additions and 2 deletions
|
@ -325,8 +325,6 @@ public ActionResult ViewTopic(string id, int page = 1, bool triedtolikeownpost =
|
||||||
{
|
{
|
||||||
int realpage = page - 1;
|
int realpage = page - 1;
|
||||||
int pageSize = 10;
|
int pageSize = 10;
|
||||||
if (triedtolikeowntopic)
|
|
||||||
ViewBag.Error = "You cannot like or dislike your own topic!";
|
|
||||||
var db = new ApplicationDbContext();
|
var db = new ApplicationDbContext();
|
||||||
var topic = db.ForumTopics.FirstOrDefault(x => x.Discriminator == id);
|
var topic = db.ForumTopics.FirstOrDefault(x => x.Discriminator == id);
|
||||||
if (topic == null)
|
if (topic == null)
|
||||||
|
|
Loading…
Reference in a new issue