Add missing require_auth? in StatusController

This commit is contained in:
Jeremy Kescher 2022-11-06 01:56:57 +01:00
parent 52f9449b3d
commit e326d44f29
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -25,7 +25,7 @@ module Mastodon
end
def suffix_version
'+1.1.4'
'+1.1.5'
end
def to_a