2017-04-23 03:21:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-18 23:51:04 +00:00
|
|
|
class Api::ActivityPub::NotesController < Api::BaseController
|
2017-05-29 16:22:22 +00:00
|
|
|
include Authorization
|
|
|
|
|
2017-04-23 03:21:10 +00:00
|
|
|
before_action :set_status
|
|
|
|
|
|
|
|
respond_to :activitystreams2
|
|
|
|
|
|
|
|
def show
|
2017-05-29 16:22:22 +00:00
|
|
|
authorize @status, :show?
|
2017-04-23 03:21:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_status
|
|
|
|
@status = Status.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|