FIX: Don't include hidden posts in embedded comments

This commit is contained in:
Robin Ward
2016-05-03 15:01:20 -04:00
parent 2cc6efba8c
commit 664f1913c8
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class EmbedController < ApplicationController
current_user,
limit: SiteSetting.embed_post_limit,
exclude_first: true,
exclude_deleted_users: true)
exclude_deleted_users: true,
exclude_hidden: true)
@second_post_url = "#{@topic_view.topic.url}/2" if @topic_view
@posts_left = 0