mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Fix New Phame Blog status setting
Summary: Column status cannot be null fix. Test Plan: Create a new blog. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14574
This commit is contained in:
parent
b219285999
commit
8c016b20d2
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ final class PhameBlog extends PhameDAO
|
|||
public static function initializeNewBlog(PhabricatorUser $actor) {
|
||||
$blog = id(new PhameBlog())
|
||||
->setCreatorPHID($actor->getPHID())
|
||||
->setStatus(self::STATUS_ACTIVE)
|
||||
->setViewPolicy(PhabricatorPolicies::getMostOpenPolicy())
|
||||
->setEditPolicy(PhabricatorPolicies::POLICY_USER);
|
||||
return $blog;
|
||||
|
|
Loading…
Reference in a new issue