Replace do_like() calls
This commit is contained in:
parent
d1001bf158
commit
a286e8bf3b
|
@ -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") {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user