Skip to content

Commit

Permalink
Copy query change to next instance
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Aug 5, 2023
1 parent 1bca81c commit 9ee5c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def activity
posts: { deleted: false })
when 'edits'
SuggestedEdit.where(user: @user) + \
PostHistory.joins(:post).where(user: @user, posts: { deleted: false },
post_history_type: PostHistoryType.find_by(name: 'post_edited'))
PostHistory.joins(:post, :post_history_type).where(user: @user, posts: { deleted: false },
post_history_types: { name: 'post_edited' })
else
Post.undeleted.where(user: @user) + \
Comment.joins(:comment_thread, :post).undeleted.where(user: @user, comment_threads: { deleted: false },
Expand Down

0 comments on commit 9ee5c50

Please sign in to comment.