Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110349671
FeedPushWorker.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Apr 25, 22:20
Size
563 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 22:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25764912
Attached To
rPH Phabricator
FeedPushWorker.php
View Options
<?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
Log In to Comment