FIX: build broke, also escaping issue on poster name
This commit is contained in:
parent
60cb5ea6a9
commit
42c7ad4670
|
@ -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>");
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue