1
0
Fork 0

Hopefully make the tests happy

This commit is contained in:
Michael 2021-01-16 07:13:32 +00:00
parent 1b39e056fe
commit 352f1fcae2
2 changed files with 10 additions and 1 deletions

View file

@ -2041,7 +2041,7 @@ function api_statuses_repeat($type)
Logger::log('API: api_statuses_repeat: '.$id); Logger::log('API: api_statuses_repeat: '.$id);
$fields = ['uri-id', 'network', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink']; $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 (DBA::isResult($item) && $item['body'] != "") {
if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER])) { if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER])) {

View file

@ -187,6 +187,7 @@ return [
'contact-id' => 42, 'contact-id' => 42,
'author-id' => 42, 'author-id' => 42,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 42,
'uid' => 42, 'uid' => 42,
'verb' => 'http://activitystrea.ms/schema/1.0/post', 'verb' => 'http://activitystrea.ms/schema/1.0/post',
'unseen' => 1, 'unseen' => 1,
@ -210,6 +211,7 @@ return [
'contact-id' => 42, 'contact-id' => 42,
'author-id' => 42, 'author-id' => 42,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 42,
'uid' => 42, 'uid' => 42,
'verb' => 'http://activitystrea.ms/schema/1.0/post', 'verb' => 'http://activitystrea.ms/schema/1.0/post',
'unseen' => 0, 'unseen' => 0,
@ -230,6 +232,7 @@ return [
'contact-id' => 43, 'contact-id' => 43,
'author-id' => 43, 'author-id' => 43,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 43,
'uid' => 42, 'uid' => 42,
'verb' => 'http://activitystrea.ms/schema/1.0/post', 'verb' => 'http://activitystrea.ms/schema/1.0/post',
'unseen' => 0, 'unseen' => 0,
@ -249,6 +252,7 @@ return [
'contact-id' => 44, 'contact-id' => 44,
'author-id' => 44, 'author-id' => 44,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 44,
'uid' => 42, 'uid' => 42,
'verb' => 'http://activitystrea.ms/schema/1.0/post', 'verb' => 'http://activitystrea.ms/schema/1.0/post',
'unseen' => 0, 'unseen' => 0,
@ -269,6 +273,7 @@ return [
'contact-id' => 42, 'contact-id' => 42,
'author-id' => 42, 'author-id' => 42,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 42,
'uid' => 42, 'uid' => 42,
'verb' => 'http://activitystrea.ms/schema/1.0/post', 'verb' => 'http://activitystrea.ms/schema/1.0/post',
'unseen' => 0, 'unseen' => 0,
@ -292,6 +297,7 @@ return [
'contact-id' => 44, 'contact-id' => 44,
'author-id' => 44, 'author-id' => 44,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 44,
'uid' => 42, 'uid' => 42,
'verb' => 'http://activitystrea.ms/schema/1.0/post', 'verb' => 'http://activitystrea.ms/schema/1.0/post',
'unseen' => 0, 'unseen' => 0,
@ -332,6 +338,7 @@ return [
'contact-id' => 42, 'contact-id' => 42,
'author-id' => 42, 'author-id' => 42,
'owner-id' => 42, 'owner-id' => 42,
'causer-id' => 42,
'uid' => 42, 'uid' => 42,
'wall' => 1, 'wall' => 1,
], ],
@ -342,6 +349,7 @@ return [
'contact-id' => 43, 'contact-id' => 43,
'author-id' => 43, 'author-id' => 43,
'owner-id' => 43, 'owner-id' => 43,
'causer-id' => 43,
'uid' => 0, 'uid' => 0,
'wall' => 1, 'wall' => 1,
], ],
@ -352,6 +360,7 @@ return [
'contact-id' => 44, 'contact-id' => 44,
'author-id' => 44, 'author-id' => 44,
'owner-id' => 44, 'owner-id' => 44,
'causer-id' => 44,
'uid' => 0, 'uid' => 0,
'wall' => 1, 'wall' => 1,
], ],