ソースを参照

Merge pull request #3446 from pixelfed/staging

Remove arbitrary metro url redirect timeout
daniel 3 年 前
コミット
cfce080cba
2 ファイル変更1 行追加3 行削除
  1. 1 0
      CHANGELOG.md
  2. 0 3
      app/Http/Controllers/SpaController.php

+ 1 - 0
CHANGELOG.md

@@ -7,6 +7,7 @@
 - Enforce UTC in incoming activities ([18931a1f](https://github.com/pixelfed/pixelfed/commit/18931a1f))
 - Add storage flags to admin dashboard diagnostics ([#3444](https://github.com/pixelfed/pixelfed/pull/3444))
 - Hardcode UTC application timezone to prevent timezone issues ([b0d2c5e1](https://github.com/pixelfed/pixelfed/commit/b0d2c5e1))
+- Remove arbitrary metro url redirect timeout ([84209c24](https://github.com/pixelfed/pixelfed/commit/84209c24))
 
 ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)
 

+ 0 - 3
app/Http/Controllers/SpaController.php

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