From 9f2fc7f93834a142028ee7385d564120b0eaf58a Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 10 Nov 2015 12:57:33 -0800 Subject: [PATCH] Only send Phame Post body on new creation Summary: Right now we're attaching the body of every Phame post on each comment, at least restrict it to newly created objects only. Test Plan: Write a new post, get full email, leave a comment, get less email. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14459 --- src/applications/phame/editor/PhamePostEditor.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/applications/phame/editor/PhamePostEditor.php b/src/applications/phame/editor/PhamePostEditor.php index 01a7ca2739..abe7dfe097 100644 --- a/src/applications/phame/editor/PhamePostEditor.php +++ b/src/applications/phame/editor/PhamePostEditor.php @@ -209,7 +209,10 @@ final class PhamePostEditor $body = parent::buildMailBody($object, $xactions); - $body->addRemarkupSection(null, $object->getBody()); + if ($this->getIsNewObject()) { + $body->addRemarkupSection(null, $object->getBody()); + } + $body->addLinkSection( pht('POST DETAIL'), PhabricatorEnv::getProductionURI($object->getViewURI()));