From ef07d174232a1be3e72477d6aa8d76067ac80afe Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 25 May 2020 21:31:35 -0600 Subject: [PATCH] Update InstagramImport trait --- app/Http/Controllers/Import/Instagram.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Import/Instagram.php b/app/Http/Controllers/Import/Instagram.php index 936f10b4c..b5d2d38a7 100644 --- a/app/Http/Controllers/Import/Instagram.php +++ b/app/Http/Controllers/Import/Instagram.php @@ -27,7 +27,7 @@ trait Instagram ->whereNotNull('completed_at') ->exists(); if($completed == true) { - return redirect(route('settings'))->with(['errors' => ['You can only import from Instagram once.']]); + return redirect(route('settings'))->with(['error' => 'You can only import from Instagram once during the beta. Please report any issues!']); } $job = $this->instagramRedirectOrNew(); return redirect($job->url()); @@ -160,7 +160,6 @@ trait Instagram { $profile = Auth::user()->profile; - try { $import = ImportJob::whereProfileId($profile->id) ->where('uuid', $uuid) @@ -173,8 +172,6 @@ trait Instagram \Log::info($e); } - return redirect(route('settings'))->with(['status' => [ - 'Import successful! It may take a few minutes to finish.' - ]]); + return redirect(route('settings'))->with(['status' => 'Import successful! It may take a few minutes to finish.']); } }