Project

General

Profile

Patch #16069 » 0005-quickfix-allow-less-than-25.patch

vzvu 3k6k, 2020-10-24 09:56

View differences:

app/controllers/application_controller.rb
657 657
    limit = options[:limit].to_i
658 658
    if limit < 1
659 659
      limit = 25
660
    elsif limit > Setting.api_limit.to_i
660
    end
661
    if limit > Setting.api_limit.to_i
661 662
      limit = Setting.api_limit.to_i
662 663
    end
663 664
    if offset.nil? && options[:page].present?
(5-5/6)