Explorar o código

Merge pull request #4162 from pixelfed/staging

Update ApiV1Controller
daniel %!s(int64=2) %!d(string=hai) anos
pai
achega
063502f49e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Api/ApiV1Controller.php

+ 1 - 1
app/Http/Controllers/Api/ApiV1Controller.php

@@ -622,7 +622,7 @@ class ApiV1Controller extends Controller
             try {
                 $status = $napi ? StatusService::get($s->id, false) : StatusService::getMastodon($s->id, false);
             } catch (\Exception $e) {
-                $status = false;
+                return false;
             }
 
 			if($profile) {