mirror of
https://github.com/discourse/discourse.git
synced 2026-08-27 13:47:28 -05:00
Add specs for topic create with auto_close_time. Just ignore auto_close_time from users who are not authorized to use it instead of raising an error.
This commit is contained in:
@@ -339,7 +339,7 @@ Discourse.Utilities = {
|
||||
return t.add('days', 1).toJSON();
|
||||
}
|
||||
} else {
|
||||
return arg;
|
||||
return (arg === '' ? null : arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -443,7 +443,6 @@ Discourse.Composer = Discourse.Model.extend({
|
||||
postStream = this.get('topic.postStream'),
|
||||
addedToStream = false;
|
||||
|
||||
|
||||
// Build the post object
|
||||
var createdPost = Discourse.Post.create({
|
||||
raw: this.get('reply'),
|
||||
|
||||
Reference in New Issue
Block a user