Set max trending tags
This commit is contained in:
parent
c3ff0887d5
commit
ebcd0950fd
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Api::V1::Trends::TagsController < Api::BaseController
|
|||
|
||||
after_action :insert_pagination_headers
|
||||
|
||||
DEFAULT_TAGS_LIMIT = 10
|
||||
DEFAULT_TAGS_LIMIT = (ENV['MAX_TRENDING_TAGS'] || 10).to_i
|
||||
|
||||
deprecate_api '2022-03-30', only: :index, if: -> { request.path == '/api/v1/trends' }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue