Set max trending tags

This commit is contained in:
Mario 2025-06-14 20:45:06 -04:00
parent c3ff0887d5
commit ebcd0950fd

View file

@ -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' }