Update ApiV1Controller, allow optional mastodonMode on v2/search endpoint

pull/4223/head
Daniel Supernault 2 years ago
parent e68ec03cea
commit f4a69631a4
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -3172,7 +3172,8 @@ class ApiV1Controller extends Controller
'following' => 'nullable' 'following' => 'nullable'
]); ]);
return $this->json(SearchApiV2Service::query($request, true)); $mastodonMode = !$request->has('_pe');
return $this->json(SearchApiV2Service::query($request, $mastodonMode));
} }
/** /**

Loading…
Cancel
Save