diff options
author | abcang <abcang1015@gmail.com> | 2020-07-15 02:05:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 19:05:07 +0200 |
commit | 6a96af4d20129cea06c716393338aa4f730b7b35 (patch) | |
tree | 071f96680125fb4120fc54c1c7ef646bedcf54f3 /app/controllers/tags_controller.rb | |
parent | a8e84a18f1d84943e8332ff8deba9d91b1cb3efd (diff) |
Fix rubocop warning (#14288)
* Fix rubocop warning * use limit variable * use ContextCreatingMethods option
Diffstat (limited to 'app/controllers/tags_controller.rb')
-rw-r--r-- | app/controllers/tags_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 234a0c411..6426a7d69 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -27,7 +27,7 @@ class TagsController < ApplicationController expires_in 0, public: true limit = params[:limit].present? ? [params[:limit].to_i, PAGE_SIZE_MAX].min : PAGE_SIZE - @statuses = HashtagQueryService.new.call(@tag, filter_params, nil, @local).limit(PAGE_SIZE) + @statuses = HashtagQueryService.new.call(@tag, filter_params, nil, @local).limit(limit) @statuses = cache_collection(@statuses, Status) render xml: RSS::TagSerializer.render(@tag, @statuses) |