mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
Bug fix
Fix issue where (dis)liking a user's post causes a redirect to your own profile.
This commit is contained in:
parent
0b2469ee1c
commit
6245822bee
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ public ActionResult DislikePosts(string id)
|
||||||
db.Likes.Add(like);
|
db.Likes.Add(like);
|
||||||
}
|
}
|
||||||
db.SaveChanges();
|
db.SaveChanges();
|
||||||
return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(uid) });
|
return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ public ActionResult LikePost(string id)
|
||||||
db.Likes.Add(like);
|
db.Likes.Add(like);
|
||||||
}
|
}
|
||||||
db.SaveChanges();
|
db.SaveChanges();
|
||||||
return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(uid) });
|
return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue