]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7752 from kPherox/develop
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 18 Oct 2019 10:54:42 +0000 (06:54 -0400)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2019 10:54:42 +0000 (06:54 -0400)
Change Model type to `OrderedCollectionPage`

src/Protocol/ActivityPub/Transmitter.php

index 19c0cc28ed9257b072761de746d545ed83a14ba6..d2581ff3f45e9f929692b399e59f1dce222b12b1 100644 (file)
@@ -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;