]> cat aescling's git repositories - mastodon.git/blob - app/controllers/api/activitypub/notes_controller.rb
ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce...
[mastodon.git] / app / controllers / api / activitypub / notes_controller.rb
1 # frozen_string_literal: true
2
3 class Api::Activitypub::NotesController < ApiController
4 before_action :set_status
5
6 respond_to :activitystreams2
7
8 def show
9 headers['Access-Control-Allow-Origin'] = '*'
10
11 forbidden unless @status.permitted?
12 end
13
14 private
15
16 def set_status
17 @status = Status.find(params[:id])
18 end
19 end
This page took 0.068456 seconds and 4 git commands to generate.