Browse Source

Change notifications per page from 15 to 40 in REST API (#23348)

closed-social-glitch-2
Eugen Rochko 1 year ago
committed by GitHub
parent
commit
21780c0204
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/v1/notifications_controller.rb

+ 1
- 1
app/controllers/api/v1/notifications_controller.rb View File

@ -6,7 +6,7 @@ class Api::V1::NotificationsController < Api::BaseController
before_action :require_user!
after_action :insert_pagination_headers, only: :index
DEFAULT_NOTIFICATIONS_LIMIT = 15
DEFAULT_NOTIFICATIONS_LIMIT = 40
def index
@notifications = load_notifications

Loading…
Cancel
Save