Page MenuHomePhabricator

D14656.id35453.diff
No OneTemporary

D14656.id35453.diff

diff --git a/src/applications/phame/controller/post/PhamePostEditController.php b/src/applications/phame/controller/post/PhamePostEditController.php
--- a/src/applications/phame/controller/post/PhamePostEditController.php
+++ b/src/applications/phame/controller/post/PhamePostEditController.php
@@ -146,7 +146,7 @@
id(new AphrontFormSelectControl())
->setLabel(pht('Visibility'))
->setName('visibility')
- ->setvalue($visibility)
+ ->setValue($visibility)
->setOptions(PhameConstants::getPhamePostStatusMap()))
->appendChild(
id(new PhabricatorRemarkupControl())
diff --git a/src/applications/phame/storage/PhamePost.php b/src/applications/phame/storage/PhamePost.php
--- a/src/applications/phame/storage/PhamePost.php
+++ b/src/applications/phame/storage/PhamePost.php
@@ -34,7 +34,7 @@
->setBloggerPHID($blogger->getPHID())
->setBlogPHID($blog->getPHID())
->setBlog($blog)
- ->setDatePublished(0)
+ ->setDatePublished(time())
->setVisibility(PhameConstants::VISIBILITY_PUBLISHED);
return $post;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 26, 10:31 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6751451
Default Alt Text
D14656.id35453.diff (1 KB)

Event Timeline