]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4116 not liking users now since people think they are liking the activity...
authorCash Costello <cash.costello@gmail.com>
Mon, 28 Nov 2011 23:23:08 +0000 (18:23 -0500)
committercash <cash.costello@gmail.com>
Tue, 29 Nov 2011 02:44:02 +0000 (21:44 -0500)
mod/likes/start.php

index 690d7c05239d6a3dbf3f637928742fcce0627f8f..0f8e12159a0e037831d30e7a8d1e60077fbe650b 100644 (file)
@@ -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) {