X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Flike.php;h=118ec81ca1c35e47ca966c997c254a2a379234d1;hb=b50769b6d09549e1641bab1813087fd928602129;hp=15633fc7671de1112414d54086c4f327b45855bb;hpb=dfa5183774e24fe2b1a355c9427372d4cd55ea70;p=friendica.git diff --git a/include/like.php b/include/like.php index 15633fc767..118ec81ca1 100644 --- a/include/like.php +++ b/include/like.php @@ -153,7 +153,7 @@ function do_like($item_id, $verb) { ); $like_item_id = $like_item['id']; - proc_run('php',"include/notifier.php","like","$like_item_id"); + proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $like_item_id); return true; } @@ -161,7 +161,7 @@ function do_like($item_id, $verb) { $uri = item_new_uri($a->get_hostname(),$owner_uid); $post_type = (($item['resource-id']) ? t('photo') : t('status')); - if($item['obj_type'] === ACTIVITY_OBJ_EVENT) + if($item['object-type'] === ACTIVITY_OBJ_EVENT) $post_type = t('event'); $objtype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE ); $link = xmlify('' . "\n") ; @@ -245,7 +245,7 @@ EOT; call_hooks('post_local_end', $arr); - proc_run('php',"include/notifier.php","like","$post_id"); + proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $post_id); return true; }