diff --git a/app/models/node.rb b/app/models/node.rb index f1802919a2..1b0b6d451b 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -681,7 +681,7 @@ def self.new_note(params) comment: 2, type: 'note') node.status = 4 if author.first_time_poster - node.draft if params[:draft] == "true" + node.save_draft if params[:draft] == "true" if node.valid? # is this not triggering title uniqueness validation? saved = true @@ -1104,7 +1104,7 @@ def self.unlike(nid, user) end # status = 3 for draft nodes,visible to author only - def draft + def save_draft self.status = 3 save self