mirror of
https://github.com/friendica/friendica
synced 2025-04-22 00:30:10 +00:00
Issue 11427: id values of OrderedCollections have to contain the page number
This commit is contained in:
parent
70392df68d
commit
eb1f38df22
5 changed files with 27 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue