Add missing require_auth? in StatusController

main v3.5.3+1.1.5
Jeremy Kescher 2 years ago
parent 52f9449b3d
commit e326d44f29
No known key found for this signature in database
GPG Key ID: 48DFE4BB15BA5940

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

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

Loading…
Cancel
Save