[various] Replace *_page_info function calls with Content\PageInfo equivalent #1002

Merged
MrPetovan merged 2 commits from task/8798-remove-items-php into develop 2020-07-14 20:43:57 +02:00
Showing only changes of commit 5a36205139 - Show all commits

View file

@ -925,8 +925,6 @@ function pumpio_dounlike(App $a, $uid, $self, $post, $own_id)
function pumpio_dolike(App $a, $uid, $self, $post, $own_id, $threadcompletion = true) function pumpio_dolike(App $a, $uid, $self, $post, $own_id, $threadcompletion = true)
{ {
require_once('include/items.php');
if (empty($post->object->id)) { if (empty($post->object->id)) {
Logger::log('Got empty like: '.print_r($post, true), Logger::DEBUG); Logger::log('Got empty like: '.print_r($post, true), Logger::DEBUG);
return; return;
@ -1096,8 +1094,6 @@ function pumpio_dodelete(App $a, $uid, $self, $post, $own_id)
function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcompletion = true) function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcompletion = true)
{ {
require_once('include/items.php');
if (($post->verb == "like") || ($post->verb == "favorite")) { if (($post->verb == "like") || ($post->verb == "favorite")) {
return pumpio_dolike($a, $uid, $self, $post, $own_id); return pumpio_dolike($a, $uid, $self, $post, $own_id);
} }