diff --git a/src/Api/Controllers/SearchController.php b/src/Api/Controllers/SearchController.php index 95f61ea..dbfc9d7 100644 --- a/src/Api/Controllers/SearchController.php +++ b/src/Api/Controllers/SearchController.php @@ -136,7 +136,7 @@ class SearchController extends ListDiscussionsController ->where(function ($query) use ($results) { $query ->whereIn('discussions.id', $results->pluck('discussion_id')->filter()) - ->orWhereIn('posts.id', $results->pluck('most_relevant_post_id')->filter()) + ->orWhereIn('posts.id', $results->pluck('most_relevant_post_id')->filter()); }) ->get() ->each(function (Discussion $discussion) use ($results) {