Browse Source

Update StatusService, fix logic check

Daniel Supernault 1 year ago
parent
commit
61d235b797
1 changed files with 1 additions and 1 deletions
  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']);
         }