FIX: Close info was not showing up after removing an attribute

It was removed in 4cc22a55a0.
This commit is contained in:
Robin Ward 2015-04-01 15:20:59 -04:00
parent aff23a28f8
commit 2fde257506
2 changed files with 0 additions and 4 deletions

View File

@ -542,7 +542,6 @@ const Composer = Discourse.Model.extend({
// It's no longer a new post
createdPost.set('newPost', false);
topic.set('draft_sequence', result.draft_sequence);
topic.set('details.auto_close_at', result.topic_auto_close_at);
postStream.commitPost(createdPost);
addedToStream = true;
} else {

View File

@ -624,9 +624,6 @@ const PostStream = Ember.Object.extend({
return existing;
}
// Update the auto_close_at value of the topic
this.set("topic.details.auto_close_at", post.get("topic_auto_close_at"));
post.set('topic', this.get('topic'));
postIdentityMap.set(post.get('id'), post);