Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14031463
D14464.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
684 B
Referenced Files
None
Subscribers
None
D14464.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
@@ -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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 10, 10:37 AM (1 w, 19 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6715686
Default Alt Text
D14464.diff (684 B)
Attached To
Mode
D14464: Fix publish time on Phame Posts
Attached
Detach File
Event Timeline
Log In to Comment