From 2fde25750620d7ac3e9c5f1c10f4a0aebf93c89a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 1 Apr 2015 15:20:59 -0400 Subject: [PATCH] FIX: Close info was not showing up after removing an attribute It was removed in 4cc22a55a0eee06ce31. --- app/assets/javascripts/discourse/models/composer.js.es6 | 1 - app/assets/javascripts/discourse/models/post-stream.js.es6 | 3 --- 2 files changed, 4 deletions(-) diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6 index 15844923c14..0244d3c2697 100644 --- a/app/assets/javascripts/discourse/models/composer.js.es6 +++ b/app/assets/javascripts/discourse/models/composer.js.es6 @@ -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 { diff --git a/app/assets/javascripts/discourse/models/post-stream.js.es6 b/app/assets/javascripts/discourse/models/post-stream.js.es6 index 512c8d9ce35..7c3ae0cf265 100644 --- a/app/assets/javascripts/discourse/models/post-stream.js.es6 +++ b/app/assets/javascripts/discourse/models/post-stream.js.es6 @@ -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);