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

Merge pull request #4655 from pixelfed/staging

Update StatusService, fix logic check
daniel преди 1 година
родител
ревизия
19015f18b0
променени са 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']);
         }