mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-07 14:22:12 +00:00
Fix: visible_post_types expects a user
This commit is contained in:
parent
589d2e9761
commit
df21bc6e73
@ -75,7 +75,7 @@ module DiscourseRewind
|
|||||||
.includes(:topic)
|
.includes(:topic)
|
||||||
.where(
|
.where(
|
||||||
"posts.post_type IN (?)",
|
"posts.post_type IN (?)",
|
||||||
Topic.visible_post_types(user.guardian, include_moderator_actions: false),
|
Topic.visible_post_types(user, include_moderator_actions: false),
|
||||||
)
|
)
|
||||||
.joins(
|
.joins(
|
||||||
"INNER JOIN posts replies ON posts.topic_id = replies.topic_id AND posts.reply_to_post_number = replies.post_number",
|
"INNER JOIN posts replies ON posts.topic_id = replies.topic_id AND posts.reply_to_post_number = replies.post_number",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user