1
1
Fork 0

Replace do_like() calls

This commit is contained in:
Hypolite Petovan 2018-02-01 14:17:08 -05:00
parent d1001bf158
commit a286e8bf3b
2 changed files with 3 additions and 2 deletions

View file

@ -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") {

View file

@ -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;
}