Context: use the correct "select functionality
This commit is contained in:
parent
099b4caef2
commit
97891fe05b
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ class Context extends BaseApi
|
||||||
$parents = [];
|
$parents = [];
|
||||||
$children = [];
|
$children = [];
|
||||||
|
|
||||||
$posts = Post::select(['uri-id', 'thr-parent-id'],
|
$posts = Post::selectPosts(['uri-id', 'thr-parent-id'],
|
||||||
['parent-uri-id' => $parent['parent-uri-id'], 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT]], [], false);
|
['parent-uri-id' => $parent['parent-uri-id'], 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT]], []);
|
||||||
while ($post = Post::fetch($posts)) {
|
while ($post = Post::fetch($posts)) {
|
||||||
if ($post['uri-id'] == $post['thr-parent-id']) {
|
if ($post['uri-id'] == $post['thr-parent-id']) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue