Explorar o código

Update StatusService, fix logic check

Daniel Supernault hai 1 ano
pai
achega
61d235b797
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/StatusService.php

+ 1 - 1
app/Services/StatusService.php

@@ -43,7 +43,7 @@ class StatusService
             }
             return $res;
         });
-        if($res) {
+        if($res && isset($res['_pid'])) {
             $res['account'] = $mastodonMode === true ? AccountService::getMastodon($res['_pid'], true) : AccountService::get($res['_pid'], true);
             unset($res['_pid']);
         }