Update DirectMessageController, disable exception logging for invalid urls. Fixes #2752

This commit is contained in:
Daniel Supernault 2021-06-01 21:18:02 -06:00
parent 69567e19df
commit 2d0a253e07
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 7 additions and 1 deletions

View file

@ -596,6 +596,10 @@ class DirectMessageController extends Controller
$q = $request->input('q');
$r = $request->input('remote');
if(!Str::of($q)->contains('.')) {
return [];
}
if($r && Helpers::validateUrl($q)) {
Helpers::profileFetch($q);
}