Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115712579
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
Mon, Jun 2, 13:39
Size
492 B
Mime Type
text/x-php
Expires
Wed, Jun 4, 13:39 (2 d)
Engine
blob
Format
Raw Data
Handle
26483926
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
(
'Feed story does not exist.'
);
}
return
$story
;
}
}
Event Timeline
Log In to Comment