Преглед изворни кода

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']);
         }