Fix `GET /api/v1/trends/tags` missing `offset` param in REST API (#17973)

th-downstream
Eugen Rochko 2 years ago committed by GitHub
parent c720b36d97
commit 89268074e7

@ -16,7 +16,7 @@ class Api::V1::Trends::TagsController < Api::BaseController
def set_tags
@tags = begin
if Setting.trends
Trends.tags.query.allowed.limit(limit_param(DEFAULT_TAGS_LIMIT))
Trends.tags.query.allowed.offset(offset_param).limit(limit_param(DEFAULT_TAGS_LIMIT))
else
[]
end

Loading…
Cancel
Save