summaryrefslogtreecommitdiff
path: root/app/controllers/commit_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/commit_controller.rb')
-rw-r--r--app/controllers/commit_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb
index d671e9f9e9e..ebc27772f9a 100644
--- a/app/controllers/commit_controller.rb
+++ b/app/controllers/commit_controller.rb
@@ -17,7 +17,9 @@ class CommitController < ProjectResourceController
@note = result[:note]
@line_notes = result[:line_notes]
@notes_count = result[:notes_count]
- @comments_allowed = true
+ @comments_allowed = @reply_allowed = true
+ @comments_target = { noteable_type: 'Commit',
+ noteable_id: @commit.id }
respond_to do |format|
format.html do