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

class Api::Activitypub::NotesController < ApiController
  before_action :set_status

  respond_to :activitystreams2

  def show
    forbidden unless @status.permitted?
  end

  private

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