summaryrefslogtreecommitdiff
path: root/app/controllers/notes_controller.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-22 02:57:22 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:56 +0100
commitc4a7824a8c6487b24379f7f85c26f182bbc1dee9 (patch)
treec23fdbf95bbcd8b3a46e2eaae6021e62a0bc3ff3 /app/controllers/notes_controller.rb
parent140652e9b019addaf7022e18b6816ecb36eee80c (diff)
downloadgitlab-ce-c4a7824a8c6487b24379f7f85c26f182bbc1dee9.tar.gz
Fix wall notes
Diffstat (limited to 'app/controllers/notes_controller.rb')
-rw-r--r--app/controllers/notes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index e04a61b2905..000c7bbb641 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -71,6 +71,7 @@ class NotesController < ProjectResourceController
# Helps to distinguish e.g. commit notes in mr notes list
def note_for_main_target?(note)
- @target_type.camelize == note.noteable_type && !note.for_diff_line?
+ note.for_wall? ||
+ (@target_type.camelize == note.noteable_type && !note.for_diff_line?)
end
end