闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
283 B

  1. # frozen_string_literal: true
  2. class Api::Activitypub::NotesController < ApiController
  3. before_action :set_status
  4. respond_to :activitystreams2
  5. def show
  6. forbidden unless @status.permitted?
  7. end
  8. private
  9. def set_status
  10. @status = Status.find(params[:id])
  11. end
  12. end