1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00: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:
Chad Little 2015-11-10 12:57:33 -08:00
parent 1365b37fae
commit 9f2fc7f938

View file

@ -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()));