Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119433019
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
Thu, Jun 26, 18:57
Size
712 B
Mime Type
text/x-php
Expires
Sat, Jun 28, 18:57 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
27024905
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