Page MenuHomePhabricator

D14464.id34979.diff
No OneTemporary

D14464.id34979.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
Thu, Jun 13, 9:34 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6290578
Default Alt Text
D14464.id34979.diff (684 B)

Event Timeline