]> git.mxchange.org Git - friendica.git/commitdiff
Hopefully make the tests happy
authorMichael <heluecht@pirati.ca>
Sat, 16 Jan 2021 07:13:32 +0000 (07:13 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 16 Jan 2021 07:13:32 +0000 (07:13 +0000)
include/api.php
tests/datasets/api.fixture.php

index b649d224816a006a2c028fbc1c4b8438529bccd4..26a377821ec0766ff44f76ff006f8a8c4090f74a 100644 (file)
@@ -2041,7 +2041,7 @@ function api_statuses_repeat($type)
        Logger::log('API: api_statuses_repeat: '.$id);
 
        $fields = ['uri-id', 'network', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink'];
-       $item = Item::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
+       $item = Post::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
 
        if (DBA::isResult($item) && $item['body'] != "") {
                if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER])) {
index ce7161e413271cc9abc464c825ed1a3016a415ce..fcd1e6a6bb4f5bb4dc09eddd25658b9fba855c3e 100644 (file)
@@ -187,6 +187,7 @@ return [
                        'contact-id'  => 42,
                        'author-id'   => 42,
                        'owner-id'    => 42,
+                       'causer-id'   => 42,
                        'uid'         => 42,
                        'verb'        => 'http://activitystrea.ms/schema/1.0/post',
                        'unseen'      => 1,
@@ -210,6 +211,7 @@ return [
                        'contact-id'  => 42,
                        'author-id'   => 42,
                        'owner-id'    => 42,
+                       'causer-id'   => 42,
                        'uid'         => 42,
                        'verb'        => 'http://activitystrea.ms/schema/1.0/post',
                        'unseen'      => 0,
@@ -230,6 +232,7 @@ return [
                        'contact-id'  => 43,
                        'author-id'   => 43,
                        'owner-id'    => 42,
+                       'causer-id'   => 43,
                        'uid'         => 42,
                        'verb'        => 'http://activitystrea.ms/schema/1.0/post',
                        'unseen'      => 0,
@@ -249,6 +252,7 @@ return [
                        'contact-id'  => 44,
                        'author-id'   => 44,
                        'owner-id'    => 42,
+                       'causer-id'   => 44,
                        'uid'         => 42,
                        'verb'        => 'http://activitystrea.ms/schema/1.0/post',
                        'unseen'      => 0,
@@ -269,6 +273,7 @@ return [
                        'contact-id'  => 42,
                        'author-id'   => 42,
                        'owner-id'    => 42,
+                       'causer-id'   => 42,
                        'uid'         => 42,
                        'verb'        => 'http://activitystrea.ms/schema/1.0/post',
                        'unseen'      => 0,
@@ -292,6 +297,7 @@ return [
                        'contact-id'  => 44,
                        'author-id'   => 44,
                        'owner-id'    => 42,
+                       'causer-id'   => 44,
                        'uid'         => 42,
                        'verb'        => 'http://activitystrea.ms/schema/1.0/post',
                        'unseen'      => 0,
@@ -332,6 +338,7 @@ return [
                        'contact-id' => 42,
                        'author-id'  => 42,
                        'owner-id'   => 42,
+                       'causer-id'  => 42,
                        'uid'        => 42,
                        'wall'       => 1,
                ],
@@ -342,6 +349,7 @@ return [
                        'contact-id' => 43,
                        'author-id'  => 43,
                        'owner-id'   => 43,
+                       'causer-id'  => 43,
                        'uid'        => 0,
                        'wall'       => 1,
                ],
@@ -352,6 +360,7 @@ return [
                        'contact-id' => 44,
                        'author-id'  => 44,
                        'owner-id'   => 44,
+                       'causer-id'  => 44,
                        'uid'        => 0,
                        'wall'       => 1,
                ],