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
limit = options[:limit].to_i
if limit < 1
limit = 25
elsif limit > Setting.api_limit.to_i
end
if limit > Setting.api_limit.to_i
limit = Setting.api_limit.to_i
end
if offset.nil? && options[:page].present?
(5-5/6)