]> git.mxchange.org Git - friendica.git/commitdiff
Change Model type to `OrderedCollectionPage`
authorkPherox <admin@mail.kr-kp.com>
Thu, 29 Aug 2019 02:12:01 +0000 (11:12 +0900)
committerkPherox <admin@mail.kr-kp.com>
Fri, 18 Oct 2019 03:58:47 +0000 (12:58 +0900)
Use type `OrderedCollectionPage` instead of `OrderedCollection` in pages or distinct subsets
FYI: https://www.w3.org/TR/activitystreams-core/#h-paging

src/Protocol/ActivityPub/Transmitter.php

index e44ae1cf66c2dfa4ff9413cc2b457d10fbb39279..efadcbb371f7c32ef0ecd2b20a102e6393db839c 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;