Fix test data

This commit is contained in:
Michael 2021-02-04 09:46:29 +00:00
parent 5e846dd7c2
commit 2282bb4a19
2 changed files with 18 additions and 15 deletions

View file

@ -899,8 +899,9 @@ class Item
// If its a post that originated here then tag the thread as "mention" // If its a post that originated here then tag the thread as "mention"
if ($item['origin'] && $item['uid']) { if ($item['origin'] && $item['uid']) {
DBA::update('post-thread-user', ['mention' => true], ['uri-id' => $item['parent-uri-id'], 'uid' => $item['uid']]);
DBA::update('thread', ['mention' => true], ['iid' => $parent_id]); DBA::update('thread', ['mention' => true], ['iid' => $parent_id]);
Logger::info('tagged thread as mention', ['parent' => $parent_id, 'uid' => $item['uid']]); Logger::info('tagged thread as mention', ['parent' => $parent_id, 'parent-uri-id' => $item['parent-uri-id'], 'uid' => $item['uid']]);
} }
// Update the contact relations // Update the contact relations

View file

@ -419,34 +419,36 @@ return [
'msg_cache' => 'A test reply from an item', 'msg_cache' => 'A test reply from an item',
], ],
], ],
'thread' => [ 'post-thread' => [
[ [
'iid' => 1,
'uri-id' => 1, 'uri-id' => 1,
'visible' => 1,
'contact-id' => 42,
'author-id' => 42, 'author-id' => 42,
'owner-id' => 42, 'owner-id' => 42,
],
[
'uri-id' => 3,
'author-id' => 43,
'owner-id' => 43,
],
[
'uri-id' => 6,
'author-id' => 44,
'owner-id' => 44,
],
],
'post-thread-user' => [
[
'uri-id' => 1,
'uid' => 42, 'uid' => 42,
'wall' => 1, 'wall' => 1,
], ],
[ [
'iid' => 3,
'uri-id' => 3, 'uri-id' => 3,
'visible' => 1,
'contact-id' => 43,
'author-id' => 43,
'owner-id' => 43,
'uid' => 0, 'uid' => 0,
'wall' => 1, 'wall' => 1,
], ],
[ [
'iid' => 6,
'uri-id' => 6, 'uri-id' => 6,
'visible' => 1,
'contact-id' => 44,
'author-id' => 44,
'owner-id' => 44,
'uid' => 0, 'uid' => 0,
'wall' => 1, 'wall' => 1,
], ],