aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-28 18:23:08 -0500
committercash <cash.costello@gmail.com>2011-11-28 21:44:02 -0500
commitbcf876ec70e5d1e1479b5d0128c543c751ef1bd2 (patch)
treea26d235e2d426affba9f3699a485a1265f5687f1
parenta8750de6336ab4551c3ee217df0d8676a209e49e (diff)
downloadelgg-bcf876ec70e5d1e1479b5d0128c543c751ef1bd2.tar.gz
elgg-bcf876ec70e5d1e1479b5d0128c543c751ef1bd2.tar.bz2
Fixes #4116 not liking users now since people think they are liking the activity entry
-rw-r--r--mod/likes/start.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/likes/start.php b/mod/likes/start.php
index 690d7c052..0f8e12159 100644
--- a/mod/likes/start.php
+++ b/mod/likes/start.php
@@ -65,6 +65,11 @@ function likes_river_menu_setup($hook, $type, $return, $params) {
if ($item->type == "group" && $item->view != "river/group/create") {
return $return;
}
+
+ // don't like users #4116
+ if ($item->type == "user") {
+ return $return;
+ }
$object = $item->getObjectEntity();
if (!elgg_in_context('widgets') && $item->annotation_id == 0) {