diff --git a/app/controllers/cards/comments/reactions_controller.rb b/app/controllers/cards/comments/reactions_controller.rb index 1226c605c..f843d7e42 100644 --- a/app/controllers/cards/comments/reactions_controller.rb +++ b/app/controllers/cards/comments/reactions_controller.rb @@ -1,4 +1,6 @@ class Cards::Comments::ReactionsController < ApplicationController + include CardScoped + before_action :set_comment def index @@ -24,7 +26,7 @@ class Cards::Comments::ReactionsController < ApplicationController private def set_comment - @comment = Current.account.comments.find(params[:comment_id]) + @comment = @card.comments.find(params[:comment_id]) end def reaction_params