mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Replace do_like() calls
This commit is contained in:
parent
d1001bf158
commit
a286e8bf3b
2 changed files with 3 additions and 2 deletions
|
@ -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 a new issue