Also set comment mode to default if user input is missing

This commit is contained in:
Tobi Schäfer 2008-05-10 11:26:10 +00:00
parent c0534cfbb4
commit 05f475c3df

View file

@ -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