A platform for community discussion. Free, open, simple.
FIX: user_id attribute not found in posters array
Vinoth Kannan096974d1783e
diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6index af6cc421bf4..489333e5880 100644--- a/app/assets/javascripts/discourse/models/topic.js.es6+++ b/app/assets/javascripts/discourse/models/topic.js.es6@@ -78,7 +78,7 @@ const Topic = RestModel.extend({}}- const poster_ids = _.pluck(posters, "user_id");+ const poster_ids = posters.map(p => p.user && p.user.id).filter(id => id);participants.some(p => {if (!poster_ids.includes(p.user_id)) {users.splice(users.length - pushOffset, 0, p);