Merge pull request #4817 from pixelfed/staging

Update HomeFeedPipeline, fix StatusService validation
This commit is contained in:
daniel 2023-12-09 23:53:58 -07:00 committed by GitHub
commit 7ac1e398b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ class FeedInsertPipeline implements ShouldQueue, ShouldBeUniqueUntilProcessing
$sid = $this->sid; $sid = $this->sid;
$status = StatusService::get($sid, false); $status = StatusService::get($sid, false);
if(!$status) { if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return; return;
} }

View File

@ -69,7 +69,7 @@ class FeedInsertRemotePipeline implements ShouldQueue, ShouldBeUniqueUntilProces
$sid = $this->sid; $sid = $this->sid;
$status = StatusService::get($sid, false); $status = StatusService::get($sid, false);
if(!$status) { if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return; return;
} }

View File

@ -77,7 +77,7 @@ class HashtagInsertFanoutPipeline implements ShouldQueue, ShouldBeUniqueUntilPro
$sid = $hashtag->status_id; $sid = $hashtag->status_id;
$status = StatusService::get($sid, false); $status = StatusService::get($sid, false);
if(!$status) { if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return; return;
} }

View File

@ -71,7 +71,7 @@ class HashtagRemoveFanoutPipeline implements ShouldQueue, ShouldBeUniqueUntilPro
$hid = $this->hid; $hid = $this->hid;
$status = StatusService::get($sid, false); $status = StatusService::get($sid, false);
if(!$status) { if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return; return;
} }