diff --git a/app/controllers/user_notifications_controller.rb b/app/controllers/user_notifications_controller.rb index 214ccc033..d1b5e144c 100644 --- a/app/controllers/user_notifications_controller.rb +++ b/app/controllers/user_notifications_controller.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class UserNotificationsController < ApplicationController + prepend_before_action -> { request.env['devise.skip_trackable'] = true }, only: :unseen_counter + def index page = (params[:page] || 1).to_i notifications = load_notifications.page(page).per(Constants::INFINITE_SCROLL_LIMIT).without_count