Преглед на файлове

Update StatusService, fix logic check

Daniel Supernault преди 1 година
родител
ревизия
61d235b797
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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']);
         }