mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
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
This commit is contained in:
parent
1365b37fae
commit
9f2fc7f938
1 changed files with 4 additions and 1 deletions
|
@ -209,7 +209,10 @@ final class PhamePostEditor
|
||||||
|
|
||||||
$body = parent::buildMailBody($object, $xactions);
|
$body = parent::buildMailBody($object, $xactions);
|
||||||
|
|
||||||
|
if ($this->getIsNewObject()) {
|
||||||
$body->addRemarkupSection(null, $object->getBody());
|
$body->addRemarkupSection(null, $object->getBody());
|
||||||
|
}
|
||||||
|
|
||||||
$body->addLinkSection(
|
$body->addLinkSection(
|
||||||
pht('POST DETAIL'),
|
pht('POST DETAIL'),
|
||||||
PhabricatorEnv::getProductionURI($object->getViewURI()));
|
PhabricatorEnv::getProductionURI($object->getViewURI()));
|
||||||
|
|
Loading…
Reference in a new issue