1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 09:46:49 +00:00

Remove arbitrary metro url redirect timeout

This commit is contained in:
Daniel Supernault 2022-05-13 23:59:00 -06:00
parent 6a1b9d82d9
commit 84209c2433
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -35,7 +35,6 @@ class SpaController extends Controller
isset($post['local']) && isset($post['local']) &&
$post['local'] === true $post['local'] === true
) { ) {
sleep(5);
return redirect($post['url']); return redirect($post['url']);
} }
@ -55,8 +54,6 @@ class SpaController extends Controller
$account = AccountService::get($id); $account = AccountService::get($id);
sleep(5);
if($account && isset($account['url']) && $account['local']) { if($account && isset($account['url']) && $account['local']) {
return redirect($account['url']); return redirect($account['url']);
} }