From fe757623603600caf0a74cbead4a02d0bd95388a Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 26 Oct 2011 07:30:58 -0400 Subject: Fixes #3958 added special catch for liking groups --- mod/likes/start.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod/likes/start.php b/mod/likes/start.php index 76b48a369..690d7c052 100644 --- a/mod/likes/start.php +++ b/mod/likes/start.php @@ -60,6 +60,12 @@ function likes_entity_menu_setup($hook, $type, $return, $params) { function likes_river_menu_setup($hook, $type, $return, $params) { if (elgg_is_logged_in()) { $item = $params['item']; + + // only like group creation #3958 + if ($item->type == "group" && $item->view != "river/group/create") { + return $return; + } + $object = $item->getObjectEntity(); if (!elgg_in_context('widgets') && $item->annotation_id == 0) { if ($object->canAnnotate(0, 'likes')) { -- cgit v1.2.3