Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78017585
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
Sat, Aug 17, 21:13
Size
712 B
Mime Type
text/x-php
Expires
Mon, Aug 19, 21:13 (2 d)
Engine
blob
Format
Raw Data
Handle
19968595
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