about summary refs log tree commit diff
path: root/app/controllers/api/activitypub/notes_controller.rb
blob: 783c1c4edd43c4dad1d4fc45d3155b4c47f3c62a (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 < Api::BaseController
  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