Serve transfer landing inline for internal ladl.link proxy requests.
Deploy Ladill Transfer / deploy (push) Successful in 38s
Deploy Ladill Transfer / deploy (push) Successful in 38s
Avoid redirecting satellite proxies back to ladl.link, which caused recipient short links to time out. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
namespace App\Http\Controllers\Public;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Controllers\Public\TransferPublicController;
|
||||
use App\Models\QrCode;
|
||||
use App\Services\Qr\QrScanRecorder;
|
||||
use App\Support\LadillLink;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
@@ -44,6 +46,10 @@ class QrScanController extends Controller
|
||||
}
|
||||
|
||||
if ($qrCode->isTransferType()) {
|
||||
if (LadillLink::isInternalRequest($request)) {
|
||||
return app(TransferPublicController::class)->landing($request, $shortCode);
|
||||
}
|
||||
|
||||
return redirect()->away($qrCode->publicPath('transfer'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user