From eddecba9a6aaada8bbe4d3e6ae1bb85b6215a93a Mon Sep 17 00:00:00 2001 From: Ismayil Khayredinov Date: Tue, 9 Feb 2016 11:54:45 +0100 Subject: [PATCH] fix(posts): make wall posts likeable --- classes/hypeJunction/Wall/Plugin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/hypeJunction/Wall/Plugin.php b/classes/hypeJunction/Wall/Plugin.php index fb5977e..d54c702 100644 --- a/classes/hypeJunction/Wall/Plugin.php +++ b/classes/hypeJunction/Wall/Plugin.php @@ -106,6 +106,8 @@ public function init() { elgg_register_notification_event('object', 'thewire', array('publish')); elgg_register_plugin_hook_handler('prepare', 'notification:publish:object:hjwall', array($this->notifications, 'formatMessage')); elgg_register_plugin_hook_handler('prepare', 'notification:publish:object:thewire', array($this->notifications, 'formatMessage')); + + elgg_register_plugin_hook_handler('likes:is_likable', 'object:hjwall', 'Elgg\Values::getTrue'); } $action_path = $this->plugin->getPath() . '/actions/';