diff --git a/src/applications/ponder/editor/PonderAnswerEditor.php b/src/applications/ponder/editor/PonderAnswerEditor.php index b9e3c42869..fdb5c48437 100644 --- a/src/applications/ponder/editor/PonderAnswerEditor.php +++ b/src/applications/ponder/editor/PonderAnswerEditor.php @@ -86,16 +86,17 @@ final class PonderAnswerEditor extends PonderEditor { } protected function buildReplyHandler(PhabricatorLiskDAO $object) { - $question = $object->getQuestion(); - return id(new PonderQuestionReplyHandler()) - ->setMailReceiver($question); + return id(new PonderAnswerReplyHandler()) + ->setMailReceiver($object); } protected function buildMailTemplate(PhabricatorLiskDAO $object) { - $question = $object->getQuestion(); - return parent::buildMailTemplate($question); - } + $id = $object->getID(); + return id(new PhabricatorMetaMTAMail()) + ->setSubject("ANSR{$id}") + ->addHeader('Thread-Topic', "ANSR{$id}"); + } protected function buildMailBody( PhabricatorLiskDAO $object, diff --git a/src/applications/ponder/editor/PonderEditor.php b/src/applications/ponder/editor/PonderEditor.php index 89e525ce7c..24c6f2d8d2 100644 --- a/src/applications/ponder/editor/PonderEditor.php +++ b/src/applications/ponder/editor/PonderEditor.php @@ -7,23 +7,6 @@ abstract class PonderEditor return 'PhabricatorPonderApplication'; } - protected function shouldPublishFeedStory( - PhabricatorLiskDAO $object, - array $xactions) { - return true; - } - - protected function buildMailTemplate(PhabricatorLiskDAO $object) { - $id = $object->getID(); - $title = $object->getTitle(); - $original_title = $object->getOriginalTitle(); - - return id(new PhabricatorMetaMTAMail()) - ->setSubject("Q{$id}: {$title}") - ->addHeader('Thread-Topic', "Q{$id}: {$original_title}"); - } - - protected function getMailTo(PhabricatorLiskDAO $object) { return array( $object->getAuthorPHID(), diff --git a/src/applications/ponder/editor/PonderQuestionEditor.php b/src/applications/ponder/editor/PonderQuestionEditor.php index 2fbe629002..c2d9ef231b 100644 --- a/src/applications/ponder/editor/PonderQuestionEditor.php +++ b/src/applications/ponder/editor/PonderQuestionEditor.php @@ -231,6 +231,16 @@ final class PonderQuestionEditor ->setMailReceiver($object); } + protected function buildMailTemplate(PhabricatorLiskDAO $object) { + $id = $object->getID(); + $title = $object->getTitle(); + $original_title = $object->getOriginalTitle(); + + return id(new PhabricatorMetaMTAMail()) + ->setSubject("Q{$id}: {$title}") + ->addHeader('Thread-Topic', "Q{$id}: {$original_title}"); + } + protected function buildMailBody( PhabricatorLiskDAO $object, array $xactions) {