diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index 86739971e..5e5723df5 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -47,7 +47,7 @@ class UserPresenter end if ids.any? - arel = Post.where("id in (?)", id.map(&:to_i)).order("id desc").limit(10) + arel = Post.where("id in (?)", ids.map(&:to_i)).order("id desc").limit(10) if CurrentUser.user.hide_deleted_posts? arel = arel.undeleted