Skip to content

Commit c1eb645

Browse files
committed
Merge remote-tracking branch 'origin/stable' into pkgr
2 parents 3406a60 + 7174b10 commit c1eb645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/onebox/engine/discourse_local_onebox.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def topic_html(route)
8484

8585
def can_see_post?(post, source_topic)
8686
return false if post.nil? || post.hidden || post.trashed? || post.topic.nil?
87-
Guardian.new.can_see_post?(post) || same_category?(post.topic.category, source_topic)
87+
Guardian.new.can_see_post?(post)
8888
end
8989

9090
def can_see_topic?(topic, source_topic)
9191
return false if topic.nil? || topic.trashed? || topic.private_message?
92-
Guardian.new.can_see_topic?(topic) || same_category?(topic.category, source_topic)
92+
Guardian.new.can_see_topic?(topic)
9393
end
9494

9595
def same_category?(category, source_topic)

0 commit comments

Comments
 (0)