mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update HomeFeedPipeline, fix StatusService validation
This commit is contained in:
parent
38fee418a9
commit
041c01359b
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue