Page MenuHomec4science

FeedPushWorker.php
No OneTemporary

File Metadata

Created
Sat, Jan 18, 14:48

FeedPushWorker.php

<?php
abstract class FeedPushWorker extends PhabricatorWorker {
protected function loadFeedStory() {
$task_data = $this->getTaskData();
$key = $task_data['key'];
$story = id(new PhabricatorFeedQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withChronologicalKeys(array($key))
->executeOne();
if (!$story) {
throw new PhabricatorWorkerPermanentFailureException(
pht(
'Feed story (with key "%s") does not exist or could not be loaded.',
$key));
}
return $story;
}
}

Event Timeline