Issue 11427: id values of OrderedCollections have to contain the page number

This commit is contained in:
Michael 2022-04-21 04:29:08 +00:00
parent 70392df68d
commit eb1f38df22
5 changed files with 27 additions and 15 deletions

View file

@ -42,7 +42,7 @@ class Featured extends BaseModule
throw new \Friendica\Network\HTTPException\NotFoundException();
}
$page = $request['page'] ?? null;
$page = !empty($request['page']) ? (int)$request['page'] : null;
$featured = ActivityPub\Transmitter::getFeatured($owner, $page);

View file

@ -45,7 +45,7 @@ class Followers extends BaseModule
throw new \Friendica\Network\HTTPException\NotFoundException();
}
$page = $_REQUEST['page'] ?? null;
$page = !empty($request['page']) ? (int)$request['page'] : null;
$followers = ActivityPub\Transmitter::getContacts($owner, [Contact::FOLLOWER, Contact::FRIEND], 'followers', $page, (string)HTTPSignature::getSigner('', $_SERVER));

View file

@ -43,7 +43,7 @@ class Following extends BaseModule
throw new \Friendica\Network\HTTPException\NotFoundException();
}
$page = $_REQUEST['page'] ?? null;
$page = !empty($request['page']) ? (int)$request['page'] : null;
$following = ActivityPub\Transmitter::getContacts($owner, [Contact::SHARING, Contact::FRIEND], 'following', $page);

View file

@ -43,7 +43,7 @@ class Outbox extends BaseModule
throw new \Friendica\Network\HTTPException\NotFoundException();
}
$page = $_REQUEST['page'] ?? null;
$page = !empty($request['page']) ? (int)$request['page'] : null;
$requester = HTTPSignature::getSigner('', $_SERVER);
$outbox = ActivityPub\Transmitter::getOutbox($owner, $page, $requester);