diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-04-06 20:56:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 20:56:57 +0200 |
commit | d116cb7733bb535bb72207b20fba9a7d0da371ed (patch) | |
tree | adde237fb857e011d94903b4a3db5e8e0b9aae5d /app/controllers/api/v1/trends | |
parent | 04b4b541f81e82f4ee3c8e5283123450df949a4b (diff) |
Fix `GET /api/v1/trends/tags` missing `offset` param in REST API (#17973)
Diffstat (limited to 'app/controllers/api/v1/trends')
-rw-r--r-- | app/controllers/api/v1/trends/tags_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/trends/tags_controller.rb b/app/controllers/api/v1/trends/tags_controller.rb index d77857871..329ef5ae7 100644 --- a/app/controllers/api/v1/trends/tags_controller.rb +++ b/app/controllers/api/v1/trends/tags_controller.rb @@ -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 |