2017-04-23 13:21:10 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Api::Activitypub::NotesController < ApiController
|
2017-05-30 02:22:22 +10:00
|
|
|
include Authorization
|
|
|
|
|
2017-04-23 13:21:10 +10:00
|
|
|
before_action :set_status
|
|
|
|
|
|
|
|
respond_to :activitystreams2
|
|
|
|
|
|
|
|
def show
|
2017-05-30 02:22:22 +10:00
|
|
|
authorize @status, :show?
|
2017-04-23 13:21:10 +10:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_status
|
|
|
|
@status = Status.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|