summaryrefslogtreecommitdiff
path: root/lib/gitlab/note_data_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/note_data_builder.rb')
-rw-r--r--lib/gitlab/note_data_builder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/note_data_builder.rb b/lib/gitlab/note_data_builder.rb
index 18523e0aefe..8bdc89a7751 100644
--- a/lib/gitlab/note_data_builder.rb
+++ b/lib/gitlab/note_data_builder.rb
@@ -59,8 +59,7 @@ module Gitlab
repository: project.hook_attrs.slice(:name, :url, :description, :homepage)
}
- base_data[:object_attributes][:url] =
- Gitlab::UrlBuilder.new(:note).build(note.id)
+ base_data[:object_attributes][:url] = Gitlab::UrlBuilder.build(note)
base_data
end