diff options
| author | Michael <[email protected]> | 2017-03-24 11:56:26 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-24 11:56:26 -0400 |
| commit | 6245822bee2dd31dc0e744526d1971028d771e97 (patch) | |
| tree | a3f9b12f7191ff6351b8eacaba71c9b89ea181a3 | |
| parent | 0b2469ee1c836c0022f1d10d24dbd0055011c43a (diff) | |
| download | project-unite-6245822bee2dd31dc0e744526d1971028d771e97.tar.gz project-unite-6245822bee2dd31dc0e744526d1971028d771e97.tar.bz2 project-unite-6245822bee2dd31dc0e744526d1971028d771e97.zip | |
Bug fix
Fix issue where (dis)liking a user's post causes a redirect to your own
profile.
| -rw-r--r-- | Project-Unite/Controllers/ProfilesController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Project-Unite/Controllers/ProfilesController.cs b/Project-Unite/Controllers/ProfilesController.cs index 5140296..46b9e80 100644 --- a/Project-Unite/Controllers/ProfilesController.cs +++ b/Project-Unite/Controllers/ProfilesController.cs @@ -60,7 +60,7 @@ namespace Project_Unite.Controllers db.Likes.Add(like); } db.SaveChanges(); - return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(uid) }); + return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) }); } @@ -97,7 +97,7 @@ namespace Project_Unite.Controllers db.Likes.Add(like); } db.SaveChanges(); - return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(uid) }); + return RedirectToAction("ViewProfile", new { id = ACL.UserNameRaw(topic.UserId) }); } |
