]> git.mxchange.org Git - friendica.git/commitdiff
Fix test data
authorMichael <heluecht@pirati.ca>
Thu, 4 Feb 2021 09:46:29 +0000 (09:46 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 4 Feb 2021 09:46:29 +0000 (09:46 +0000)
src/Model/Item.php
tests/datasets/api.fixture.php

index 70530c45b1d3b3ebf9a0a264b2524d72ff779b05..106d50e764cb1bb7d09992b37b209f2e0d01f024 100644 (file)
@@ -899,8 +899,9 @@ class Item
 
                        // If its a post that originated here then tag the thread as "mention"
                        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]);
-                               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
index aa99fc7cb3da8fdbf82f7cd1ea58b58788b1f1a0..4cba5eeb80fc03ac887d2ebe07f8bbd0c287416b 100644 (file)
@@ -419,34 +419,36 @@ return [
                        'msg_cache' => 'A test reply from an item',
                ],
        ],
-       'thread'  => [
+       'post-thread'  => [
                [
-                       'iid'        => 1,
                        'uri-id'     => 1,
-                       'visible'    => 1,
-                       'contact-id' => 42,
                        'author-id'  => 42,
                        'owner-id'   => 42,
-                       'uid'        => 42,
-                       'wall'       => 1,
                ],
                [
-                       'iid'        => 3,
                        'uri-id'     => 3,
-                       'visible'    => 1,
-                       'contact-id' => 43,
                        'author-id'  => 43,
                        'owner-id'   => 43,
-                       'uid'        => 0,
-                       'wall'       => 1,
                ],
                [
-                       'iid'        => 6,
                        'uri-id'     => 6,
-                       'visible'    => 1,
-                       'contact-id' => 44,
                        'author-id'  => 44,
                        'owner-id'   => 44,
+               ],
+       ],
+       'post-thread-user'  => [
+               [
+                       'uri-id'     => 1,
+                       'uid'        => 42,
+                       'wall'       => 1,
+               ],
+               [
+                       'uri-id'     => 3,
+                       'uid'        => 0,
+                       'wall'       => 1,
+               ],
+               [
+                       'uri-id'     => 6,
                        'uid'        => 0,
                        'wall'       => 1,
                ],