mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:03:40 +00:00
Hopefully make the tests happy
This commit is contained in:
parent
1b39e056fe
commit
352f1fcae2
2 changed files with 10 additions and 1 deletions
|
@ -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])) {
|
||||
|
|
|
@ -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,
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue