Hook Ponder to Subscriptions

Summary: Adding email aggro email aggro

Test Plan: Added some content; annoyed some coworkers.

Reviewers: epriestley, nh, vrana

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1808

Differential Revision: https://secure.phabricator.com/D3643
This commit is contained in:
Pieter Hooimeijer
2012-10-08 14:47:21 -07:00
parent cd9d78c107
commit 3440839c99
14 changed files with 587 additions and 6 deletions

View File

@@ -38,6 +38,7 @@ final class PonderCommentSaveController extends PonderController {
if (!$objects) {
return new Aphront404Response();
}
$content = $request->getStr('content');
if (!strlen(trim($content))) {
@@ -59,6 +60,8 @@ final class PonderCommentSaveController extends PonderController {
id(new PonderCommentEditor())
->setQuestion($question)
->setComment($res)
->setTargetPHID($target)
->setUser($user)
->save();
return id(new AphrontRedirectResponse())