Commit 961cb285 authored by Nihad Abbasov's avatar Nihad Abbasov

API: restore broken merge request commenting

parent c946bf88
...@@ -75,5 +75,10 @@ module Gitlab ...@@ -75,5 +75,10 @@ module Gitlab
expose :author, using: Entities::UserBasic expose :author, using: Entities::UserBasic
expose :updated_at, :created_at expose :updated_at, :created_at
end end
class MRNote < Grape::Entity
expose :note
expose :author, using: Entities::UserBasic
end
end end
end end
...@@ -107,7 +107,7 @@ module Gitlab ...@@ -107,7 +107,7 @@ module Gitlab
note.author = current_user note.author = current_user
if note.save if note.save
present note, with: Entities::Note present note, with: Entities::MRNote
else else
not_found! not_found!
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment