]> git.mxchange.org Git - friendica.git/blobdiff - tests/datasets/api.fixture.php
Merge pull request #10277 from very-ape/authenticate-hook
[friendica.git] / tests / datasets / api.fixture.php
index 4f85fe0cedeee799f406e7bcfb7785ababcc5a31..fbf2aad47c7c5622ec216ea46505f3f930febdd5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -23,7 +23,6 @@ use Friendica\Core\Protocol;
 use Friendica\Model\Contact;
 use Friendica\Model\Item;
 use Friendica\Model\Notification;
-use Friendica\Model\Verb;
 
 return [
        // Empty these tables
@@ -51,6 +50,16 @@ return [
                        'k'   => 'worker_dont_fork',
                        'v'   => '1',
                ],
+               [
+                       'cat' => 'system',
+                       'k'   => 'curl_timeout',
+                       'v'   => '1',
+               ],
+               [
+                       'cat' => 'system',
+                       'k'   => 'xrd_timeout',
+                       'v'   => '1',
+               ],
        ],
        'user'    => [
                [
@@ -183,195 +192,74 @@ return [
                        'guid' => '6',
                ],
        ],
-       'post-content' => [
+       'verb'    => [
                [
-                       'uri-id' => 1,
-                       'body'   => 'Parent status',
-                       'plink'  => 'http://localhost/display/1',
-               ],
-               [
-                       'uri-id' => 2,
-                       'body'   => 'Reply',
-                       'plink'  => 'http://localhost/display/2',
+                       'id'   => 0,
+                       'name' => '',
                ],
                [
-                       'uri-id' => 3,
-                       'body'   => 'Other user status',
-                       'plink'  => 'http://localhost/display/3',
-               ],
-               [
-                       'uri-id' => 4,
-                       'body'   => 'Friend user reply',
-                       'plink'  => 'http://localhost/display/4',
-               ],
-               [
-                       'uri-id' => 5,
-                       'body'   => '[share]Shared status[/share]',
-                       'plink'  => 'http://localhost/display/5',
-               ],
-               [
-                       'uri-id' => 6,
-                       'body'   => 'Friend user status',
-                       'plink'  => 'http://localhost/display/6',
-               ],
-       ],
-       'post-thread'  => [
-               [
-                       'uri-id'     => 1,
-                       'author-id'  => 42,
-                       'owner-id'   => 42,
-                       'causer-id'  => 42,
-                       'network'    => Protocol::DFRN,
-               ],
-               [
-                       'uri-id'     => 3,
-                       'author-id'  => 43,
-                       'owner-id'   => 43,
-                       'causer-id'  => 43,
-                       'network'    => Protocol::DFRN,
-               ],
-               [
-                       'uri-id'     => 6,
-                       'author-id'  => 44,
-                       'owner-id'   => 44,
-                       'causer-id'  => 44,
-                       'network'    => Protocol::DFRN,
-               ],
-       ],
-       'post-user' => [
-               [
-                       'id'          => 1,
-                       'uri-id'      => 1,
-                       'uid'         => 42,
-                       'contact-id'  => 42,
-                       'unseen'      => 1,
-                       'origin'      => 1,
-               ],
-               [
-                       'id'          => 2,
-                       'uri-id'      => 2,
-                       'uid'         => 42,
-                       'contact-id'  => 42,
-                       'unseen'      => 0,
-                       'origin'      => 1,
-               ],
-               [
-                       'id'          => 3,
-                       'uri-id'      => 3,
-                       'uid'         => 42,
-                       'contact-id'  => 43,
-                       'unseen'      => 0,
-                       'origin'      => 1,
-               ],
-               [
-                       'id'          => 4,
-                       'uri-id'      => 4,
-                       'uid'         => 42,
-                       'contact-id'  => 44,
-                       'unseen'      => 0,
-                       'origin'      => 1,
-               ],
-               [
-                       'id'          => 5,
-                       'uri-id'      => 5,
-                       'uid'         => 42,
-                       'contact-id'  => 42,
-                       'unseen'      => 0,
-                       'origin'      => 1,
+                       'id'   => 1,
+                       'name' => 'http://activitystrea.ms/schema/1.0/like',
                ],
                [
-                       'id'          => 6,
-                       'uri-id'      => 6,
-                       'uid'         => 42,
-                       'contact-id'  => 44,
-                       'unseen'      => 0,
-                       'origin'      => 1,
+                       'id'   => 2,
+                       'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike',
                ],
                [
-                       'id'          => 7,
-                       'uri-id'      => 1,
-                       'uid'         => 0,
-                       'contact-id'  => 42,
-                       'unseen'      => 1,
-                       'origin'      => 0,
+                       'id'   => 3,
+                       'name' => 'http://purl.org/zot/activity/attendyes',
                ],
                [
-                       'id'          => 8,
-                       'uri-id'      => 2,
-                       'uid'         => 0,
-                       'contact-id'  => 42,
-                       'unseen'      => 0,
-                       'origin'      => 0,
+                       'id'   => 4,
+                       'name' => 'http://purl.org/zot/activity/attendno',
                ],
                [
-                       'id'          => 9,
-                       'uri-id'      => 3,
-                       'uid'         => 0,
-                       'contact-id'  => 43,
-                       'unseen'      => 0,
-                       'origin'      => 0,
+                       'id'   => 5,
+                       'name' => 'http://purl.org/zot/activity/attendmaybe',
                ],
                [
-                       'id'          => 10,
-                       'uri-id'      => 4,
-                       'uid'         => 0,
-                       'contact-id'  => 44,
-                       'unseen'      => 0,
-                       'origin'      => 0,
+                       'id'   => 6,
+                       'name' => 'http://activitystrea.ms/schema/1.0/follow',
                ],
                [
-                       'id'          => 11,
-                       'uri-id'      => 5,
-                       'uid'         => 0,
-                       'contact-id'  => 42,
-                       'unseen'      => 0,
-                       'origin'      => 0,
+                       'id'   => 7,
+                       'name' => 'https://www.w3.org/ns/activitystreams#Announce',
                ],
                [
-                       'id'          => 12,
-                       'uri-id'      => 6,
-                       'uid'         => 0,
-                       'contact-id'  => 44,
-                       'unseen'      => 0,
-                       'origin'      => 0,
+                       'id'   => 8,
+                       'name' => 'http://activitystrea.ms/schema/1.0/post',
                ],
        ],
-       'post-thread-user'  => [
+       'post-content' => [
                [
-                       'uri-id'     => 1,
-                       'uid'        => 42,
-                       'wall'       => 1,
-                       'post-user-id' => 1,
+                       'uri-id' => 1,
+                       'body'   => 'Parent status',
+                       'plink'  => 'http://localhost/display/1',
                ],
                [
-                       'uri-id'     => 3,
-                       'uid'        => 42,
-                       'wall'       => 1,
-                       'post-user-id' => 3,
+                       'uri-id' => 2,
+                       'body'   => 'Reply',
+                       'plink'  => 'http://localhost/display/2',
                ],
                [
-                       'uri-id'     => 6,
-                       'uid'        => 42,
-                       'wall'       => 1,
-                       'post-user-id' => 6,
+                       'uri-id' => 3,
+                       'body'   => 'Other user status',
+                       'plink'  => 'http://localhost/display/3',
                ],
                [
-                       'uri-id'     => 1,
-                       'uid'        => 0,
-                       'wall'       => 0,
-                       'post-user-id' => 7,
+                       'uri-id' => 4,
+                       'body'   => 'Friend user reply',
+                       'plink'  => 'http://localhost/display/4',
                ],
                [
-                       'uri-id'     => 3,
-                       'uid'        => 0,
-                       'wall'       => 0,
-                       'post-user-id' => 9,
+                       'uri-id' => 5,
+                       'body'   => '[share]Shared status[/share]',
+                       'plink'  => 'http://localhost/display/5',
                ],
                [
-                       'uri-id'     => 6,
-                       'uid'        => 0,
-                       'wall'       => 0,
-                       'post-user-id' => 12,
+                       'uri-id' => 6,
+                       'body'   => 'Friend user status',
+                       'plink'  => 'http://localhost/display/6',
                ],
        ],
        'post'    => [
@@ -384,9 +272,10 @@ return [
                        'owner-id'      => 42,
                        'author-id'     => 42,
                        'causer-id'     => 42,
-                       'vid'           => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
+                       'vid'           => 8,
                        'private'       => Item::PUBLIC,
                        'visible'       => 1,
+                       'deleted'       => 0,
                ],
                [
                        'uri-id'        => 2,
@@ -397,9 +286,10 @@ return [
                        'owner-id'      => 42,
                        'author-id'     => 42,
                        'causer-id'     => 42,
-                       'vid'           => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
+                       'vid'           => 8,
                        'private'       => Item::PUBLIC,
                        'visible'       => 1,
+                       'deleted'       => 0,
                ],
                [
                        'uri-id'        => 3,
@@ -410,9 +300,10 @@ return [
                        'owner-id'      => 42,
                        'author-id'     => 43,
                        'causer-id'     => 43,
-                       'vid'           => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
+                       'vid'           => 8,
                        'private'       => Item::PUBLIC,
                        'visible'       => 1,
+                       'deleted'       => 0,
                ],
                [
                        'uri-id'        => 4,
@@ -423,9 +314,10 @@ return [
                        'owner-id'      => 42,
                        'author-id'     => 44,
                        'causer-id'     => 44,
-                       'vid'           => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
+                       'vid'           => 8,
                        'private'       => Item::PUBLIC,
                        'visible'       => 1,
+                       'deleted'       => 0,
                ],
                [
                        'uri-id'        => 5,
@@ -436,9 +328,10 @@ return [
                        'owner-id'      => 42,
                        'author-id'     => 42,
                        'causer-id'     => 42,
-                       'vid'           => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
+                       'vid'           => 8,
                        'private'       => Item::PUBLIC,
                        'visible'       => 1,
+                       'deleted'       => 0,
                ],
                [
                        'uri-id'        => 6,
@@ -449,331 +342,354 @@ return [
                        'owner-id'      => 42,
                        'author-id'     => 44,
                        'causer-id'     => 44,
-                       'vid'           => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
+                       'vid'           => 8,
                        'private'       => Item::PUBLIC,
                        'visible'       => 1,
+                       'deleted'       => 0,
                ],
        ],
-       'item'    => [
-               [
-                       'id'          => 1,
-                       'uri-id'      => 1,
-                       'uri'         => '1',
-                       'visible'     => 1,
-                       'contact-id'  => 42,
-                       'author-id'   => 42,
-                       'owner-id'    => 42,
-                       'causer-id'   => 42,
-                       'uid'         => 42,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 1,
-                       'parent'      => 1,
+       'post-user' => [
+               [
+                       'id'            => 1,
+                       'uri-id'        => 1,
+                       'visible'       => 1,
+                       'contact-id'    => 42,
+                       'author-id'     => 42,
+                       'owner-id'      => 42,
+                       'causer-id'     => 42,
+                       'uid'           => 42,
+                       'vid'           => 8,
+                       'unseen'        => 1,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_PARENT,
-                       'author-link' => 'http://localhost/profile/selfcontact',
-                       'wall'        => 1,
-                       'starred'     => 1,
-                       'origin'      => 1,
-                       'allow_cid'   => '',
-                       'allow_gid'   => '',
-                       'deny_cid'    => '',
-                       'deny_gid'    => '',
-                       'guid'        => '1',
-               ],
-               [
-                       'id'          => 2,
-                       'uri-id'      => 2,
-                       'uri'         => '2',
-                       'visible'     => 1,
-                       'contact-id'  => 42,
-                       'author-id'   => 42,
-                       'owner-id'    => 42,
-                       'causer-id'   => 42,
-                       'uid'         => 42,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 1,
+                       'private'       => Item::PUBLIC,
+                       'gravity'       => GRAVITY_PARENT,
+                       'network'       => Protocol::DFRN,
+                       'wall'          => 1,
+                       'origin'        => 1,
+               ],
+               [
+                       'id'            => 2,
+                       'uri-id'        => 2,
+                       'uid'           => 42,
+                       'contact-id'    => 42,
+                       'unseen'        => 0,
+                       'origin'        => 1,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_COMMENT,
-                       'author-link' => 'http://localhost/profile/selfcontact',
-                       'wall'        => 1,
-                       'starred'     => 0,
-                       'origin'      => 1,
-                       'guid'        => '2',
-               ],
-               [
-                       'id'          => 3,
-                       'uri-id'      => 3,
-                       'uri'         => '3',
-                       'visible'     => 1,
-                       'contact-id'  => 43,
-                       'author-id'   => 43,
-                       'owner-id'    => 42,
-                       'causer-id'   => 43,
-                       'uid'         => 42,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 3,
+                       'gravity'       => GRAVITY_COMMENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 42,
+                       'causer-id'     => 42,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 1,
+               ],
+               [
+                       'id'            => 3,
+                       'uri-id'        => 3,
+                       'uid'           => 42,
+                       'contact-id'    => 43,
+                       'unseen'        => 0,
+                       'origin'        => 1,
                        'parent-uri-id' => 3,
-                       'parent-uri'  => '3',
                        'thr-parent-id' => 3,
-                       'thr-parent'  => '3',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_PARENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 1,
-                       'starred'     => 0,
-                       'origin'      => 1,
-                       'guid'        => '3',
-               ],
-               [
-                       'id'          => 4,
-                       'uri-id'      => 4,
-                       'uri'         => '4',
-                       'visible'     => 1,
-                       'contact-id'  => 44,
-                       'author-id'   => 44,
-                       'owner-id'    => 42,
-                       'causer-id'   => 44,
-                       'uid'         => 42,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'body'        => 'Friend user reply',
-                       'parent'      => 1,
+                       'gravity'       => GRAVITY_PARENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 43,
+                       'causer-id'     => 43,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 1,
+               ],
+               [
+                       'id'            => 4,
+                       'uri-id'        => 4,
+                       'uid'           => 42,
+                       'contact-id'    => 44,
+                       'unseen'        => 0,
+                       'origin'        => 1,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_COMMENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 1,
-                       'starred'     => 0,
-                       'origin'      => 1,
-                       'guid'        => '4',
+                       'gravity'       => GRAVITY_COMMENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 44,
+                       'causer-id'     => 44,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 1,
                ],
                [
-
-                       'id'          => 5,
-                       'uri-id'      => 5,
-                       'uri'         => '5',
-                       'visible'     => 1,
-                       'contact-id'  => 42,
-                       'author-id'   => 42,
-                       'owner-id'    => 42,
-                       'causer-id'   => 42,
-                       'uid'         => 42,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 1,
+                       'id'            => 5,
+                       'uri-id'        => 5,
+                       'uid'           => 42,
+                       'contact-id'    => 42,
+                       'unseen'        => 0,
+                       'origin'        => 1,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_COMMENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 1,
-                       'starred'     => 0,
-                       'origin'      => 1,
-                       'allow_cid'   => '',
-                       'allow_gid'   => '',
-                       'deny_cid'    => '',
-                       'deny_gid'    => '',
-                       'guid'        => '5',
-               ],
-               [
-                       'id'          => 6,
-                       'uri-id'      => 6,
-                       'uri'         => '6',
-                       'visible'     => 1,
-                       'contact-id'  => 44,
-                       'author-id'   => 44,
-                       'owner-id'    => 42,
-                       'causer-id'   => 44,
-                       'uid'         => 42,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 6,
+                       'gravity'       => GRAVITY_COMMENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 42,
+                       'causer-id'     => 42,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 1,
+               ],
+               [
+                       'id'            => 6,
+                       'uri-id'        => 6,
+                       'uid'           => 42,
+                       'contact-id'    => 44,
+                       'unseen'        => 0,
+                       'origin'        => 1,
                        'parent-uri-id' => 6,
-                       'parent-uri'  => '6',
                        'thr-parent-id' => 6,
-                       'thr-parent'  => '6',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_PARENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 1,
-                       'starred'     => 0,
-                       'origin'      => 1,
-                       'guid'        => '6',
-               ],
-               [
-                       'id'          => 7,
-                       'uri-id'      => 1,
-                       'uri'         => '1',
-                       'visible'     => 1,
-                       'contact-id'  => 42,
-                       'author-id'   => 42,
-                       'owner-id'    => 42,
-                       'causer-id'   => 42,
-                       'uid'         => 0,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 1,
-                       'parent'      => 7,
+                       'gravity'       => GRAVITY_PARENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 44,
+                       'causer-id'     => 44,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 1,
+               ],
+               [
+                       'id'            => 7,
+                       'uri-id'        => 1,
+                       'uid'           => 0,
+                       'contact-id'    => 42,
+                       'unseen'        => 1,
+                       'origin'        => 0,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_PARENT,
-                       'author-link' => 'http://localhost/profile/selfcontact',
-                       'wall'        => 0,
-                       'starred'     => 1,
-                       'origin'      => 0,
-                       'allow_cid'   => '',
-                       'allow_gid'   => '',
-                       'deny_cid'    => '',
-                       'deny_gid'    => '',
-                       'guid'        => '1',
-               ],
-               [
-                       'id'          => 8,
-                       'uri-id'      => 2,
-                       'uri'         => '2',
-                       'visible'     => 1,
-                       'contact-id'  => 42,
-                       'author-id'   => 42,
-                       'owner-id'    => 42,
-                       'causer-id'   => 42,
-                       'uid'         => 0,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 7,
+                       'gravity'       => GRAVITY_PARENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 42,
+                       'causer-id'     => 42,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 0,
+               ],
+               [
+                       'id'            => 8,
+                       'uri-id'        => 2,
+                       'uid'           => 0,
+                       'contact-id'    => 42,
+                       'unseen'        => 0,
+                       'origin'        => 0,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_COMMENT,
-                       'author-link' => 'http://localhost/profile/selfcontact',
-                       'wall'        => 0,
-                       'starred'     => 0,
-                       'origin'      => 0,
-                       'guid'        => '2',
-               ],
-               [
-                       'id'          => 9,
-                       'uri-id'      => 3,
-                       'uri'         => '3',
-                       'visible'     => 1,
-                       'contact-id'  => 43,
-                       'author-id'   => 43,
-                       'owner-id'    => 42,
-                       'causer-id'   => 43,
-                       'uid'         => 0,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 9,
+                       'gravity'       => GRAVITY_COMMENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 42,
+                       'causer-id'     => 42,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 0,
+               ],
+               [
+                       'id'            => 9,
+                       'uri-id'        => 3,
+                       'uid'           => 0,
+                       'contact-id'    => 43,
+                       'unseen'        => 0,
+                       'origin'        => 0,
                        'parent-uri-id' => 3,
-                       'parent-uri'  => '3',
                        'thr-parent-id' => 3,
-                       'thr-parent'  => '3',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_PARENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 0,
-                       'starred'     => 0,
-                       'origin'      => 0,
-                       'guid'        => '3',
-               ],
-               [
-                       'id'          => 10,
-                       'uri-id'      => 4,
-                       'uri'         => '4',
-                       'visible'     => 1,
-                       'contact-id'  => 44,
-                       'author-id'   => 44,
-                       'owner-id'    => 42,
-                       'causer-id'   => 44,
-                       'uid'         => 0,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'body'        => 'Friend user reply',
-                       'parent'      => 7,
+                       'gravity'       => GRAVITY_PARENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 43,
+                       'causer-id'     => 43,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 0,
+               ],
+               [
+                       'id'            => 10,
+                       'uri-id'        => 4,
+                       'uid'           => 0,
+                       'contact-id'    => 44,
+                       'unseen'        => 0,
+                       'origin'        => 0,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_COMMENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 0,
-                       'starred'     => 0,
-                       'origin'      => 0,
-                       'guid'        => '4',
+                       'gravity'       => GRAVITY_COMMENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 44,
+                       'causer-id'     => 44,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 0,
                ],
                [
-
-                       'id'          => 11,
-                       'uri-id'      => 5,
-                       'uri'         => '5',
-                       'visible'     => 1,
-                       'contact-id'  => 42,
-                       'author-id'   => 42,
-                       'owner-id'    => 42,
-                       'causer-id'   => 42,
-                       'uid'         => 0,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 7,
+                       'id'            => 11,
+                       'uri-id'        => 5,
+                       'uid'           => 0,
+                       'contact-id'    => 42,
+                       'unseen'        => 0,
+                       'origin'        => 0,
                        'parent-uri-id' => 1,
-                       'parent-uri'  => '1',
                        'thr-parent-id' => 1,
-                       'thr-parent'  => '1',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_COMMENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 0,
-                       'starred'     => 0,
-                       'origin'      => 1,
-                       'allow_cid'   => '',
-                       'allow_gid'   => '',
-                       'deny_cid'    => '',
-                       'deny_gid'    => '',
-                       'guid'        => '5',
-               ],
-               [
-                       'id'          => 12,
-                       'uri-id'      => 6,
-                       'uri'         => '6',
-                       'visible'     => 1,
-                       'contact-id'  => 44,
-                       'author-id'   => 44,
-                       'owner-id'    => 42,
-                       'causer-id'   => 44,
-                       'uid'         => 0,
-                       'verb'        => 'http://activitystrea.ms/schema/1.0/post',
-                       'unseen'      => 0,
-                       'parent'      => 12,
+                       'gravity'       => GRAVITY_COMMENT,
+                       'network'       => Protocol::DFRN,
+                       'owner-id'      => 42,
+                       'author-id'     => 42,
+                       'causer-id'     => 42,
+                       'vid'           => 8,
+                       'private'       => Item::PUBLIC,
+                       'visible'       => 1,
+                       'deleted'       => 0,
+                       'wall'          => 0,
+               ],
+               [
+                       'id'            => 12,
+                       'uri-id'        => 6,
+                       'visible'       => 1,
+                       'contact-id'    => 44,
+                       'author-id'     => 44,
+                       'owner-id'      => 42,
+                       'causer-id'     => 44,
+                       'uid'           => 0,
+                       'vid'           => 8,
+                       'unseen'        => 0,
                        'parent-uri-id' => 6,
-                       'parent-uri'  => '6',
                        'thr-parent-id' => 6,
-                       'thr-parent'  => '6',
-                       'private'     => Item::PUBLIC,
-                       'gravity'     => GRAVITY_PARENT,
-                       'author-link' => 'http://localhost/profile/othercontact',
-                       'wall'        => 0,
-                       'starred'     => 0,
-                       'origin'      => 0,
-                       'guid'        => '6',
+                       'private'       => Item::PUBLIC,
+                       'gravity'       => GRAVITY_PARENT,
+                       'network'       => Protocol::DFRN,
+                       'origin'        => 0,
+                       'deleted'       => 0,
+                       'wall'          => 0,
+               ],
+       ],
+       'post-thread'  => [
+               [
+                       'uri-id'     => 1,
+                       'author-id'  => 42,
+                       'owner-id'   => 42,
+                       'causer-id'  => 42,
+                       'network'    => Protocol::DFRN,
+               ],
+               [
+                       'uri-id'     => 3,
+                       'author-id'  => 43,
+                       'owner-id'   => 43,
+                       'causer-id'  => 43,
+                       'network'    => Protocol::DFRN,
+               ],
+               [
+                       'uri-id'     => 6,
+                       'author-id'  => 44,
+                       'owner-id'   => 44,
+                       'causer-id'  => 44,
+                       'network'    => Protocol::DFRN,
+               ],
+       ],
+       'post-thread-user'  => [
+               [
+                       'uri-id'     => 1,
+                       'uid'        => 42,
+                       'wall'       => 1,
+                       'post-user-id' => 1,
+                       'author-id'  => 42,
+                       'owner-id'   => 42,
+                       'causer-id'  => 42,
+                       'contact-id' => 42,
+                       'network'    => Protocol::DFRN,
+                       'starred'    => 1,
+                       'origin'     => 1,
+               ],
+               [
+                       'uri-id'     => 3,
+                       'uid'        => 42,
+                       'wall'       => 1,
+                       'post-user-id' => 3,
+                       'author-id'  => 43,
+                       'owner-id'   => 43,
+                       'causer-id'  => 43,
+                       'contact-id' => 43,
+                       'network'    => Protocol::DFRN,
+                       'starred'    => 0,
+                       'origin'     => 1,
+               ],
+               [
+                       'uri-id'     => 6,
+                       'uid'        => 42,
+                       'wall'       => 1,
+                       'post-user-id' => 6,
+                       'author-id'  => 44,
+                       'owner-id'   => 44,
+                       'causer-id'  => 44,
+                       'contact-id' => 44,
+                       'network'    => Protocol::DFRN,
+                       'starred'    => 0,
+                       'origin'     => 1,
+               ],
+               [
+                       'uri-id'     => 1,
+                       'uid'        => 0,
+                       'wall'       => 0,
+                       'post-user-id' => 7,
+                       'author-id'  => 42,
+                       'owner-id'   => 42,
+                       'causer-id'  => 42,
+                       'contact-id' => 42,
+                       'network'    => Protocol::DFRN,
+                       'starred'    => 0,
+                       'origin'     => 0,
+               ],
+               [
+                       'uri-id'     => 3,
+                       'uid'        => 0,
+                       'wall'       => 0,
+                       'post-user-id' => 9,
+                       'author-id'  => 43,
+                       'owner-id'   => 43,
+                       'causer-id'  => 43,
+                       'contact-id' => 43,
+                       'network'    => Protocol::DFRN,
+                       'starred'    => 0,
+                       'origin'     => 0,
+               ],
+               [
+                       'uri-id'     => 6,
+                       'uid'        => 0,
+                       'wall'       => 0,
+                       'post-user-id' => 12,
+                       'author-id'  => 44,
+                       'owner-id'   => 44,
+                       'causer-id'  => 44,
+                       'contact-id' => 44,
+                       'network'    => Protocol::DFRN,
+                       'starred'    => 0,
+                       'origin'     => 0,
                ],
        ],
        'notify' => [
@@ -822,4 +738,4 @@ return [
                        'uid'  => 42,
                ],
        ],
-];
\ No newline at end of file
+];