mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 10:43:19 +00:00
Split timeline_preview setting into more granular settings (#36338)
This commit is contained in:
parent
62f91eddf4
commit
2d2c525097
88 changed files with 156 additions and 173 deletions
|
|
@ -3,14 +3,8 @@
|
|||
class Api::V1::Timelines::BaseController < Api::BaseController
|
||||
after_action :insert_pagination_headers, unless: -> { @statuses.empty? }
|
||||
|
||||
before_action :require_user!, if: :require_auth?
|
||||
|
||||
private
|
||||
|
||||
def require_auth?
|
||||
!Setting.timeline_preview
|
||||
end
|
||||
|
||||
def pagination_collection
|
||||
@statuses
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue