@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 24 lines 563 B view raw
1<?php 2 3abstract class FeedPushWorker extends PhabricatorWorker { 4 5 protected function loadFeedStory() { 6 $task_data = $this->getTaskData(); 7 $key = $task_data['key']; 8 9 $story = id(new PhabricatorFeedQuery()) 10 ->setViewer(PhabricatorUser::getOmnipotentUser()) 11 ->withChronologicalKeys(array($key)) 12 ->executeOne(); 13 14 if (!$story) { 15 throw new PhabricatorWorkerPermanentFailureException( 16 pht( 17 'Feed story (with key "%s") does not exist or could not be loaded.', 18 $key)); 19 } 20 21 return $story; 22 } 23 24}