summaryrefslogtreecommitdiff
path: root/app/models/legacy_diff_note.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-07-25 22:51:26 -0600
committerDouwe Maan <douwe@selenight.nl>2016-07-25 22:51:26 -0600
commit35ce7aae019462b5b39b89a4f900a0c100ff71bd (patch)
treeeea8997116b141a89ebf700da92bc1fee32f4093 /app/models/legacy_diff_note.rb
parentaa26767897ebaa007b63bbb8ee7586534e94906a (diff)
downloadgitlab-ce-35ce7aae019462b5b39b89a4f900a0c100ff71bd.tar.gz
Use sha1 of discussion ID.
Diffstat (limited to 'app/models/legacy_diff_note.rb')
-rw-r--r--app/models/legacy_diff_note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/legacy_diff_note.rb b/app/models/legacy_diff_note.rb
index 04a651d50ab..7bff9f4f052 100644
--- a/app/models/legacy_diff_note.rb
+++ b/app/models/legacy_diff_note.rb
@@ -22,7 +22,7 @@ class LegacyDiffNote < Note
end
def discussion_id
- @discussion_id ||= self.class.build_discussion_id(noteable_type, noteable_id || commit_id, line_code)
+ @discussion_id ||= Digest::SHA1.hexdigest(self.class.build_discussion_id(noteable_type, noteable_id || commit_id, line_code))
end
def diff_file_hash