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
May 26 2024, 9:05 AM (5 w, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6290578
Default Alt Text
D14464.diff (684 B)

Event Timeline