<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
'mail',
'post-delivery-data',
// Base test config to avoid notice messages
- 'config' => [
- [
- 'cat' => 'system',
- 'k' => 'url',
- 'v' => 'http://localhost',
- ],
- [
- 'cat' => 'config',
- 'k' => 'hostname',
- 'v' => 'localhost',
- ],
- [
- 'cat' => 'system',
- 'k' => 'worker_dont_fork',
- 'v' => '1',
- ],
- [
- 'cat' => 'system',
- 'k' => 'curl_timeout',
- 'v' => '1',
- ],
- [
- 'cat' => 'system',
- 'k' => 'xrd_timeout',
- 'v' => '1',
- ],
- ],
'user' => [
[
'uid' => 42,
'uri-id' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'uri-id' => 2,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'uri-id' => 3,
'parent-uri-id' => 3,
'thr-parent-id' => 3,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 43,
'uri-id' => 4,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 44,
'uri-id' => 5,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'uri-id' => 6,
'parent-uri-id' => 6,
'thr-parent-id' => 6,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 44,
'uri-id' => 7,
'parent-uri-id' => 7,
'thr-parent-id' => 7,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 44,
'thr-parent-id' => 1,
'private' => Item::PUBLIC,
'global' => true,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'wall' => 1,
'origin' => 1,
'origin' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'origin' => 1,
'parent-uri-id' => 3,
'thr-parent-id' => 3,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 43,
'origin' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 44,
'origin' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'origin' => 1,
'parent-uri-id' => 6,
'thr-parent-id' => 6,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 44,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'origin' => 0,
'parent-uri-id' => 3,
'thr-parent-id' => 3,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 43,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 44,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
- 'gravity' => GRAVITY_COMMENT,
+ 'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
'owner-id' => 42,
'author-id' => 42,
'thr-parent-id' => 6,
'private' => Item::PUBLIC,
'global' => true,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'origin' => 0,
'deleted' => 0,
'thr-parent-id' => 7,
'private' => Item::PUBLIC,
'global' => true,
- 'gravity' => GRAVITY_PARENT,
+ 'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
'origin' => 0,
'deleted' => 0,
[
'id' => 1,
'type' => 8,
- 'name' => 'Reply to',
- 'url' => 'http://localhost/display/1',
+ 'name' => 'Friend contact',
+ 'url' => 'http://localhost/profile/friendcontact',
'photo' => 'http://localhost/',
'date' => '2020-01-01 12:12:02',
'msg' => 'A test reply from an item',
'uid' => 42,
- 'link' => 'http://localhost/notification/1',
+ 'link' => 'http://localhost/display/1',
'iid' => 4,
'seen' => 0,
'verb' => \Friendica\Protocol\Activity::POST,
'otype' => Notification\ObjectType::ITEM,
- 'name_cache' => 'Reply to',
+ 'name_cache' => 'Friend contact',
'msg_cache' => 'A test reply from an item',
],
],