diff --git a/app/controllers/api/v1/trends/statuses_controller.rb b/app/controllers/api/v1/trends/statuses_controller.rb index b88fad8811..ef36f906d6 100644 --- a/app/controllers/api/v1/trends/statuses_controller.rb +++ b/app/controllers/api/v1/trends/statuses_controller.rb @@ -55,4 +55,8 @@ class Api::V1::Trends::StatusesController < Api::BaseController def records_continue? @statuses.size == limit_param(DEFAULT_STATUSES_LIMIT) end + + def require_auth? + !Setting.timeline_preview + end end diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 21d6a79541..cf4db6ee5b 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -25,7 +25,7 @@ module Mastodon end def suffix_version - '+1.1.4' + '+1.1.5' end def to_a