diff --git a/src/applications/phame/editor/PhamePostEditor.php b/src/applications/phame/editor/PhamePostEditor.php --- a/src/applications/phame/editor/PhamePostEditor.php +++ b/src/applications/phame/editor/PhamePostEditor.php @@ -171,7 +171,7 @@ protected function shouldSendMail( PhabricatorLiskDAO $object, array $xactions) { - if ($object->isDraft()) { + if ($object->isDraft() || ($object->isArchived())) { return false; } return true; @@ -180,7 +180,7 @@ protected function shouldPublishFeedStory( PhabricatorLiskDAO $object, array $xactions) { - if ($object->isDraft()) { + if ($object->isDraft() || $object->isArchived()) { return false; } return true; @@ -231,7 +231,7 @@ foreach ($xactions as $xaction) { switch ($xaction->getTransactionType()) { case PhamePostTransaction::TYPE_VISIBILITY: - if (!$object->isDraft()) { + if (!$object->isDraft() && !$object->isArchived()) { $body->addRemarkupSection(null, $object->getBody()); } break;