mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Fix an issue with handling of null
feed URIs
Summary: Ref T8658. Caught this in the logs. This value may be set to `null`. Handle that gracefully. Test Plan: Will check logs. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8658 Differential Revision: https://secure.phabricator.com/D13432
This commit is contained in:
parent
8b9428b6da
commit
1192f309b0
1 changed files with 10 additions and 7 deletions
|
@ -6,13 +6,16 @@ final class FeedPublisherWorker extends FeedPushWorker {
|
|||
$story = $this->loadFeedStory();
|
||||
|
||||
$uris = PhabricatorEnv::getEnvConfig('feed.http-hooks');
|
||||
foreach ($uris as $uri) {
|
||||
$this->queueTask(
|
||||
'FeedPublisherHTTPWorker',
|
||||
array(
|
||||
'key' => $story->getChronologicalKey(),
|
||||
'uri' => $uri,
|
||||
));
|
||||
|
||||
if ($uris) {
|
||||
foreach ($uris as $uri) {
|
||||
$this->queueTask(
|
||||
'FeedPublisherHTTPWorker',
|
||||
array(
|
||||
'key' => $story->getChronologicalKey(),
|
||||
'uri' => $uri,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
$argv = array(
|
||||
|
|
Loading…
Reference in a new issue