diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 7b6f53699..79836dff5 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -6,7 +6,7 @@ def index if turbo_frame_request? per_page = params[:number_of_items_per_page].presence || 25 - base_scope = authorized_scope(Notification.includes(:noticeable)) + base_scope = authorized_scope(Notification.includes(:noticeable, sender: :person)) filtered = base_scope.search_by_params(params.to_unsafe_h) @notifications = filtered.order(created_at: :desc) .paginate(page: params[:page], per_page: per_page) diff --git a/app/views/notifications/_index.html.erb b/app/views/notifications/_index.html.erb index 803e004e8..01be14ce6 100644 --- a/app/views/notifications/_index.html.erb +++ b/app/views/notifications/_index.html.erb @@ -3,7 +3,7 @@