mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
And more formatting
This commit is contained in:
parent
a0e455a493
commit
1e3182a896
1 changed files with 3 additions and 1 deletions
|
@ -45,13 +45,15 @@ class Context extends BaseApi
|
|||
}
|
||||
|
||||
$id = $parameters['id'];
|
||||
|
||||
$parent = Post::selectFirst(['parent-uri-id'], ['uri-id' => $id]);
|
||||
if (!DBA::isResult($parent)) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
$parents = [];
|
||||
$parents = [];
|
||||
$children = [];
|
||||
|
||||
$posts = Post::select(['uri-id', 'thr-parent-id'], ['parent-uri-id' => $parent['parent-uri-id']], [], false);
|
||||
while ($post = Post::fetch($posts)) {
|
||||
if ($post['uri-id'] == $post['thr-parent-id']) {
|
||||
|
|
Loading…
Reference in a new issue