Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit df21bc6

Browse files
committed
Fix: visible_post_types expects a user
1 parent 589d2e9 commit df21bc6

File tree

1 file changed

+1
-1
lines changed
  • app/services/discourse_rewind/rewind/action

1 file changed

+1
-1
lines changed

app/services/discourse_rewind/rewind/action/fbff.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def post_query(user, date)
7575
.includes(:topic)
7676
.where(
7777
"posts.post_type IN (?)",
78-
Topic.visible_post_types(user.guardian, include_moderator_actions: false),
78+
Topic.visible_post_types(user, include_moderator_actions: false),
7979
)
8080
.joins(
8181
"INNER JOIN posts replies ON posts.topic_id = replies.topic_id AND posts.reply_to_post_number = replies.post_number",

0 commit comments

Comments
 (0)