Also set comment mode to default if user input is missing
This commit is contained in:
parent
c0534cfbb4
commit
05f475c3df
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ Story.prototype.update = function(data) {
|
|||
this.text = data.text ? data.text.trim() : String.EMPTY;
|
||||
this.status = data.status || Story.PUBLIC;
|
||||
this.mode = data.mode || Story.FEATURED;
|
||||
this.commentMode = data.commentMode;
|
||||
this.commentMode = data.commentMode || Story.OPEN;
|
||||
this.setMetadata(data);
|
||||
|
||||
// FIXME: To be removed resp. moved to Stories.create_action and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue