Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15421771
D16106.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16106.id.diff
View Options
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;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 2:08 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7225271
Default Alt Text
D16106.id.diff (1 KB)
Attached To
Mode
D16106: Clean up some PhamePostEditor archive cases
Attached
Detach File
Event Timeline
Log In to Comment