From 42c7ad4670c46c84afb083806b37e4712287f1a0 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 18 Jun 2014 17:47:31 -0400 Subject: [PATCH] FIX: build broke, also escaping issue on poster name --- app/assets/javascripts/discourse/components/poster-name.js.es6 | 1 + app/controllers/embed_controller.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/poster-name.js.es6 b/app/assets/javascripts/discourse/components/poster-name.js.es6 index 6e80d1cfe7b..ebeaacc3454 100644 --- a/app/assets/javascripts/discourse/components/poster-name.js.es6 +++ b/app/assets/javascripts/discourse/components/poster-name.js.es6 @@ -29,6 +29,7 @@ var PosterNameComponent = Em.Component.extend({ // Are we showing full names? if (name && (name !== username) && this.get('displayNameOnPosts')) { + name = Handlebars.Utils.escapeExpression(name); buffer.push("" + name + ""); } diff --git a/app/controllers/embed_controller.rb b/app/controllers/embed_controller.rb index 8a6ee04b977..263d2cfaf42 100644 --- a/app/controllers/embed_controller.rb +++ b/app/controllers/embed_controller.rb @@ -18,7 +18,6 @@ class EmbedController < ApplicationController limit: SiteSetting.embed_post_limit, exclude_first: true, exclude_deleted_users: true) - @topic_view.posts.reject! {|p| p.user.blank?} @second_post_url = "#{@topic_view.topic.url}/2" if @topic_view @posts_left = 0