Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101485389
DiffusionInlineCommentPreviewController.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, Feb 10, 22:14
Size
712 B
Mime Type
text/x-php
Expires
Wed, Feb 12, 22:14 (2 d)
Engine
blob
Format
Raw Data
Handle
24173152
Attached To
rPH Phabricator
DiffusionInlineCommentPreviewController.php
View Options
<?php
final
class
DiffusionInlineCommentPreviewController
extends
PhabricatorInlineCommentPreviewController
{
protected
function
loadInlineComments
()
{
$viewer
=
$this
->
getViewer
();
return
PhabricatorAuditInlineComment
::
loadDraftComments
(
$viewer
,
$this
->
getCommitPHID
());
}
protected
function
loadObjectOwnerPHID
()
{
$viewer
=
$this
->
getViewer
();
$commit
=
id
(
new
DiffusionCommitQuery
())
->
setViewer
(
$viewer
)
->
withPHIDs
(
array
(
$this
->
getCommitPHID
()))
->
executeOne
();
if
(!
$commit
)
{
return
null
;
}
return
$commit
->
getAuthorPHID
();
}
private
function
getCommitPHID
()
{
return
$this
->
getRequest
()->
getURIData
(
'phid'
);
}
}
Event Timeline
Log In to Comment