Updated public and tag timline controllers to require user

• Updated:
- public and tag timline controllers to require user
This commit is contained in:
mgabdev 2020-05-25 21:06:04 -04:00
parent 427cd59996
commit 2346ef25ce
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# frozen_string_literal: true
class Api::V1::Timelines::PublicController < Api::BaseController
before_action :require_user!, only: [:show]
after_action :insert_pagination_headers, unless: -> { @statuses.empty? }
respond_to :json

View File

@ -2,6 +2,7 @@
class Api::V1::Timelines::TagController < Api::BaseController
before_action :load_tag
before_action :require_user!, only: [:show]
after_action :insert_pagination_headers, unless: -> { @statuses.empty? }
respond_to :json