Revision comment drafts.

This commit is contained in:
epriestley
2011-02-05 16:57:21 -08:00
parent 50bfcd0a30
commit 1c586db9be
13 changed files with 120 additions and 6 deletions

View File

@@ -47,6 +47,13 @@ class DifferentialCommentPreviewController extends DifferentialController {
$view->setMarkupEngine($engine);
$view->setPreview(true);
$draft = new PhabricatorDraft();
$draft
->setAuthorPHID($author_phid)
->setDraftKey('differential-comment-'.$this->id)
->setDraft($comment->getContent())
->replace();
return id(new AphrontAjaxResponse())
->setContent($view->render());
}