]> git.mxchange.org Git - friendica.git/commitdiff
Context: use the correct "select functionality
authorMichael <heluecht@pirati.ca>
Sat, 19 Jun 2021 18:27:35 +0000 (18:27 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 19 Jun 2021 18:27:35 +0000 (18:27 +0000)
src/Module/Api/Mastodon/Statuses/Context.php

index 112ae857c6830b245e78912f5ad7f253f72c9043..226e52c9ea42224c8958ff6918e374fda41244ce 100644 (file)
@@ -58,8 +58,8 @@ class Context extends BaseApi
                $parents  = [];
                $children = [];
 
-               $posts = Post::select(['uri-id', 'thr-parent-id'],
-                       ['parent-uri-id' => $parent['parent-uri-id'], 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT]], [], false);
+               $posts = Post::selectPosts(['uri-id', 'thr-parent-id'],
+                       ['parent-uri-id' => $parent['parent-uri-id'], 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT]], []);
                while ($post = Post::fetch($posts)) {
                        if ($post['uri-id'] == $post['thr-parent-id']) {
                                continue;