Skip to content

Commit

Permalink
Update ApiV1Controller, allow optional mastodonMode on v2/search endp…
Browse files Browse the repository at this point in the history
…oint
  • Loading branch information
dansup committed Mar 4, 2023
1 parent e68ec03 commit f4a6963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Api/ApiV1Controller.php
Expand Up @@ -3172,7 +3172,8 @@ public function searchV2(Request $request)
'following' => 'nullable'
]);

return $this->json(SearchApiV2Service::query($request, true));
$mastodonMode = !$request->has('_pe');
return $this->json(SearchApiV2Service::query($request, $mastodonMode));
}

/**
Expand Down

0 comments on commit f4a6963

Please sign in to comment.