Browse Source

Merge pull request #7752 from kPherox/develop

Change Model type to `OrderedCollectionPage`
pull/7758/head
Hypolite Petovan 2 years ago
committed by GitHub
parent
commit
f8c0f24e34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Protocol/ActivityPub/Transmitter.php

3
src/Protocol/ActivityPub/Transmitter.php

@ -71,6 +71,7 @@ class Transmitter
if (empty($page)) {
$data['first'] = System::baseUrl() . '/followers/' . $owner['nickname'] . '?page=1';
} else {
$data['type'] = 'OrderedCollectionPage';
$list = [];
$contacts = DBA::select('contact', ['url'], $condition, ['limit' => [($page - 1) * 100, 100]]);
@ -119,6 +120,7 @@ class Transmitter
if (empty($page)) {
$data['first'] = System::baseUrl() . '/following/' . $owner['nickname'] . '?page=1';
} else {
$data['type'] = 'OrderedCollectionPage';
$list = [];
$contacts = DBA::select('contact', ['url'], $condition, ['limit' => [($page - 1) * 100, 100]]);
@ -165,6 +167,7 @@ class Transmitter
if (empty($page)) {
$data['first'] = System::baseUrl() . '/outbox/' . $owner['nickname'] . '?page=1';
} else {
$data['type'] = 'OrderedCollectionPage';
$list = [];
$condition['parent-network'] = Protocol::NATIVE_SUPPORT;

Loading…
Cancel
Save