summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-06-27 10:54:10 -0300
committerFelipe Artur <felipefac@gmail.com>2018-06-27 10:54:10 -0300
commitd66bbf82b31b60c26646955c61e6a934b89d8a69 (patch)
treec730a0e434d9f44503464b3c4f0e6413127434d1 /app/serializers
parentc82b57789dea2d95f725e87e20e6b763493c7677 (diff)
downloadgitlab-ce-d66bbf82b31b60c26646955c61e6a934b89d8a69.tar.gz
Fix discussion entity for legacy diff notes
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/discussion_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/discussion_entity.rb b/app/serializers/discussion_entity.rb
index 63f28133a64..08e816b13f9 100644
--- a/app/serializers/discussion_entity.rb
+++ b/app/serializers/discussion_entity.rb
@@ -3,7 +3,7 @@ class DiscussionEntity < Grape::Entity
include NotesHelper
expose :id, :reply_id
- expose :position, if: -> (d, _) { d.diff_discussion? }
+ expose :position, if: -> (d, _) { d.diff_discussion? && !d.legacy_diff_discussion?}
expose :line_code, if: -> (d, _) { d.diff_discussion? }
expose :expanded?, as: :expanded
expose :active?, as: :active, if: -> (d, _) { d.diff_discussion? }