From: Hypolite Petovan Date: Thu, 1 Feb 2018 19:17:08 +0000 (-0500) Subject: Replace do_like() calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a286e8bf3bfad20d1a53151e12bd1898f2fe5bf3;p=friendica.git Replace do_like() calls --- diff --git a/include/api.php b/include/api.php index f5747ad1cf..70cee49a53 100644 --- a/include/api.php +++ b/include/api.php @@ -5587,7 +5587,7 @@ function api_friendica_activity($type) $id = (x($_REQUEST, 'id') ? $_REQUEST['id'] : 0); - $res = do_like($id, $verb); + $res = Item::performLike($id, $verb); if ($res) { if ($type == "xml") { diff --git a/mod/like.php b/mod/like.php index 3c7e70cea6..a038b5a289 100644 --- a/mod/like.php +++ b/mod/like.php @@ -2,6 +2,7 @@ use Friendica\App; use Friendica\Core\System; +use Friendica\Model\Item; require_once 'include/security.php'; require_once 'include/bbcode.php'; @@ -22,7 +23,7 @@ function like_content(App $a) { $item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0); - $r = do_like($item_id, $verb); + $r = Item::performLike($item_id, $verb); if (!$r) { return; }