Update HomeFeedPipeline, fix StatusService validation

This commit is contained in:
Daniel Supernault 2023-12-09 23:53:02 -07:00
parent 38fee418a9
commit 041c01359b
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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