Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99031342
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
Sat, Jan 18, 14:48
Size
563 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 14:48 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23694025
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