Page MenuHomePhabricator

D14171.id34240.diff
No OneTemporary

D14171.id34240.diff

diff --git a/src/applications/ponder/editor/PonderAnswerEditor.php b/src/applications/ponder/editor/PonderAnswerEditor.php
--- a/src/applications/ponder/editor/PonderAnswerEditor.php
+++ b/src/applications/ponder/editor/PonderAnswerEditor.php
@@ -85,6 +85,27 @@
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
--- a/src/applications/ponder/editor/PonderEditor.php
+++ b/src/applications/ponder/editor/PonderEditor.php
@@ -7,13 +7,6 @@
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
--- a/src/applications/ponder/editor/PonderQuestionEditor.php
+++ b/src/applications/ponder/editor/PonderQuestionEditor.php
@@ -209,6 +209,13 @@
return true;
}
+ protected function getMailTo(PhabricatorLiskDAO $object) {
+ return array(
+ $object->getAuthorPHID(),
+ $this->requireActor()->getPHID(),
+ );
+ }
+
protected function shouldPublishFeedStory(
PhabricatorLiskDAO $object,
array $xactions) {

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 24, 2:48 PM (14 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7190446
Default Alt Text
D14171.id34240.diff (2 KB)

Event Timeline