Skip to content

Commit df21bc6

Browse files
committedDec 13, 2024·
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

+1-1
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)
Please sign in to comment.