Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81105980
PhamePostPreviewController.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
Wed, Sep 4, 05:49
Size
593 B
Mime Type
text/x-php
Expires
Fri, Sep 6, 05:49 (2 d)
Engine
blob
Format
Raw Data
Handle
20518034
Attached To
rPH Phabricator
PhamePostPreviewController.php
View Options
<?php
final
class
PhamePostPreviewController
extends
PhamePostController
{
protected
function
getSideNavFilter
()
{
return
null
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$body
=
$request
->
getStr
(
'body'
);
$post
=
id
(
new
PhamePost
())
->
setBody
(
$body
);
$content
=
PhabricatorMarkupEngine
::
renderOneObject
(
$post
,
PhamePost
::
MARKUP_FIELD_BODY
,
$viewer
);
$content
=
phutil_tag_div
(
'phabricator-remarkup'
,
$content
);
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
$content
);
}
}
Event Timeline
Log In to Comment