FIX: build broke, also escaping issue on poster name

This commit is contained in:
Robin Ward 2014-06-18 17:47:31 -04:00
parent 60cb5ea6a9
commit 42c7ad4670
2 changed files with 1 additions and 1 deletions

View File

@ -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("<span class='full-name'><a href='#'>" + name + "</a></span>");
}

View File

@ -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