This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-22 23:21:10 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-07 14:09:25 -04:00
|
|
|
class Api::Activitypub::NotesController < Api::BaseController
|
2017-05-29 12:22:22 -04:00
|
|
|
include Authorization
|
|
|
|
|
2017-04-22 23:21:10 -04:00
|
|
|
before_action :set_status
|
|
|
|
|
|
|
|
respond_to :activitystreams2
|
|
|
|
|
|
|
|
def show
|
2017-05-29 12:22:22 -04:00
|
|
|
authorize @status, :show?
|
2017-04-22 23:21:10 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_status
|
|
|
|
@status = Status.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|