mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:01:20 +08:00
FIX: Don't include hidden posts in embedded comments
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user