diff options
Diffstat (limited to 'app/serializers/note_entity.rb')
-rw-r--r-- | app/serializers/note_entity.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/note_entity.rb b/app/serializers/note_entity.rb index 58ad5812801..679f829e852 100644 --- a/app/serializers/note_entity.rb +++ b/app/serializers/note_entity.rb @@ -66,8 +66,8 @@ class NoteEntity < API::Entities::Note expose :emoji_awardable?, as: :emoji_awardable expose :award_emoji, if: -> (note, _) { note.emoji_awardable? }, using: AwardEmojiEntity - expose :report_abuse_path, if: -> (note, _) { note.author_id } do |note| - new_abuse_report_path(user_id: note.author_id, ref_url: Gitlab::UrlBuilder.build(note)) + expose :report_abuse_path do |note| # @deprecated To be removed in API version 5 + add_category_abuse_reports_path end expose :noteable_note_url do |note| |