Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15200768
D14171.id34240.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D14171.id34240.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14171: Make Ponder Emails a little more consistently delivered
Attached
Detach File
Event Timeline
Log In to Comment