about summary refs log tree commit diff
path: root/app/controllers/api/activitypub/notes_controller.rb
blob: ff9383413b4848770b6d6d5f1aa06e3e2b9d32d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class Api::Activitypub::NotesController < ApiController
  include Authorization

  before_action :set_status

  respond_to :activitystreams2

  def show
    authorize @status, :show?
  end

  private

  def set_status
    @status = Status.find(params[:id])
  end
end