Page MenuHomePhabricator

D14464.diff
No OneTemporary

D14464.diff

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
@@ -65,9 +65,9 @@
return $object->setBody($xaction->getNewValue());
case PhamePostTransaction::TYPE_VISIBILITY:
if ($xaction->getNewValue() == PhameConstants::VISIBILITY_DRAFT) {
- $object->setDatePublished(time());
- } else {
$object->setDatePublished(0);
+ } else {
+ $object->setDatePublished(time());
}
return $object->setVisibility($xaction->getNewValue());
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 4:50 PM (6 d, 12 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6715686
Default Alt Text
D14464.diff (684 B)

Event Timeline