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