about summary refs log tree commit diff
path: root/app/controllers/api/activitypub/notes_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/activitypub/notes_controller.rb')
-rw-r--r--app/controllers/api/activitypub/notes_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/api/activitypub/notes_controller.rb b/app/controllers/api/activitypub/notes_controller.rb
index 6489243dc..ff9383413 100644
--- a/app/controllers/api/activitypub/notes_controller.rb
+++ b/app/controllers/api/activitypub/notes_controller.rb
@@ -1,12 +1,14 @@
 # frozen_string_literal: true
 
 class Api::Activitypub::NotesController < ApiController
+  include Authorization
+
   before_action :set_status
 
   respond_to :activitystreams2
 
   def show
-    forbidden unless @status.permitted?
+    authorize @status, :show?
   end
 
   private