Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98291325
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
Sat, Jan 11, 20:07
Size
638 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 20:07 (2 d)
Engine
blob
Format
Raw Data
Handle
23551524
Attached To
rPH Phabricator
PhamePostPreviewController.php
View Options
<?php
/**
* @group phame
*/
final
class
PhamePostPreviewController
extends
PhameController
{
protected
function
getSideNavFilter
()
{
return
null
;
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$body
=
$request
->
getStr
(
'body'
);
$post
=
id
(
new
PhamePost
())
->
setBody
(
$body
);
$content
=
PhabricatorMarkupEngine
::
renderOneObject
(
$post
,
PhamePost
::
MARKUP_FIELD_BODY
,
$user
);
$content
=
phutil_tag_div
(
'phabricator-remarkup'
,
$content
);
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
$content
);
}
}
Event Timeline
Log In to Comment