From 97891fe05ba3232c07de7d54e80a8c53eda0e2a4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 19 Jun 2021 18:27:35 +0000 Subject: [PATCH] Context: use the correct "select functionality --- src/Module/Api/Mastodon/Statuses/Context.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/Statuses/Context.php b/src/Module/Api/Mastodon/Statuses/Context.php index 112ae857c6..226e52c9ea 100644 --- a/src/Module/Api/Mastodon/Statuses/Context.php +++ b/src/Module/Api/Mastodon/Statuses/Context.php @@ -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;