mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Update ApiV1Controller, allow optional mastodonMode on v2/search endpoint
This commit is contained in:
parent
e68ec03cea
commit
f4a69631a4
1 changed files with 2 additions and 1 deletions
|
@ -3172,7 +3172,8 @@ class ApiV1Controller extends Controller
|
|||
'following' => 'nullable'
|
||||
]);
|
||||
|
||||
return $this->json(SearchApiV2Service::query($request, true));
|
||||
$mastodonMode = !$request->has('_pe');
|
||||
return $this->json(SearchApiV2Service::query($request, $mastodonMode));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue