diff --git a/src/applications/ponder/editor/PonderAnswerEditor.php b/src/applications/ponder/editor/PonderAnswerEditor.php index fdb5c48437..521c1948ed 100644 --- a/src/applications/ponder/editor/PonderAnswerEditor.php +++ b/src/applications/ponder/editor/PonderAnswerEditor.php @@ -85,6 +85,27 @@ final class PonderAnswerEditor extends PonderEditor { return true; } + protected function getMailTo(PhabricatorLiskDAO $object) { + $phids = array(); + $phids[] = $object->getAuthorPHID(); + $phids[] = $this->requireActor()->getPHID(); + + $question = id(new PonderQuestionQuery()) + ->setViewer($this->requireActor()) + ->withIDs(array($object->getQuestionID())) + ->executeOne(); + + $phids[] = $question->getAuthorPHID(); + + return $phids; + } + + protected function shouldPublishFeedStory( + PhabricatorLiskDAO $object, + array $xactions) { + return true; + } + protected function buildReplyHandler(PhabricatorLiskDAO $object) { return id(new PonderAnswerReplyHandler()) ->setMailReceiver($object); diff --git a/src/applications/ponder/editor/PonderEditor.php b/src/applications/ponder/editor/PonderEditor.php index 24c6f2d8d2..fcfa981f16 100644 --- a/src/applications/ponder/editor/PonderEditor.php +++ b/src/applications/ponder/editor/PonderEditor.php @@ -7,13 +7,6 @@ abstract class PonderEditor return 'PhabricatorPonderApplication'; } - protected function getMailTo(PhabricatorLiskDAO $object) { - return array( - $object->getAuthorPHID(), - $this->requireActor()->getPHID(), - ); - } - protected function getMailSubjectPrefix() { return '[Ponder]'; } diff --git a/src/applications/ponder/editor/PonderQuestionEditor.php b/src/applications/ponder/editor/PonderQuestionEditor.php index b2f143b176..73d9ed0ce0 100644 --- a/src/applications/ponder/editor/PonderQuestionEditor.php +++ b/src/applications/ponder/editor/PonderQuestionEditor.php @@ -209,6 +209,13 @@ final class PonderQuestionEditor return true; } + protected function getMailTo(PhabricatorLiskDAO $object) { + return array( + $object->getAuthorPHID(), + $this->requireActor()->getPHID(), + ); + } + protected function shouldPublishFeedStory( PhabricatorLiskDAO $object, array $xactions) {