]> git.mxchange.org Git - friendica.git/blobdiff - include/like.php
It is now possible again to like yourself
[friendica.git] / include / like.php
index 27832896a57ae86d0c2dee7250790b844632531d..1dbdcc936d727fc10fd05969674cfe8feeb06ed6 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\Addon;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
 use Friendica\Database\DBM;
@@ -238,7 +239,6 @@ EOT;
                'deny_gid'      => $item['deny_gid'],
                'visible'       => 1,
                'unseen'        => 1,
-               'last-child'    => 0
        ];
 
        $new_item_id = item_store($new_item);
@@ -255,7 +255,7 @@ EOT;
 
        $new_item['id'] = $new_item_id;
 
-       call_hooks('post_local_end', $new_item);
+       Addon::callHooks('post_local_end', $new_item);
 
        Worker::add(PRIORITY_HIGH, "Notifier", "like", $new_item_id);