mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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?
|
// Are we showing full names?
|
||||||
if (name && (name !== username) && this.get('displayNameOnPosts')) {
|
if (name && (name !== username) && this.get('displayNameOnPosts')) {
|
||||||
|
name = Handlebars.Utils.escapeExpression(name);
|
||||||
buffer.push("<span class='full-name'><a href='#'>" + name + "</a></span>");
|
buffer.push("<span class='full-name'><a href='#'>" + name + "</a></span>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ class EmbedController < ApplicationController
|
|||||||
limit: SiteSetting.embed_post_limit,
|
limit: SiteSetting.embed_post_limit,
|
||||||
exclude_first: true,
|
exclude_first: true,
|
||||||
exclude_deleted_users: true)
|
exclude_deleted_users: true)
|
||||||
@topic_view.posts.reject! {|p| p.user.blank?}
|
|
||||||
|
|
||||||
@second_post_url = "#{@topic_view.topic.url}/2" if @topic_view
|
@second_post_url = "#{@topic_view.topic.url}/2" if @topic_view
|
||||||
@posts_left = 0
|
@posts_left = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user