summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-29 21:08:53 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-29 21:08:53 +0000
commit31664a1a5ac22e8c56a471d3afab26e661efcc0e (patch)
treea300c578ef9877df4fdbe28774b509172d474ae0 /app/serializers
parent511cd681d4ab0d4263df538b1800058edc07230e (diff)
downloadgitlab-ce-31664a1a5ac22e8c56a471d3afab26e661efcc0e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/admin/abuse_report_entity.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/serializers/admin/abuse_report_entity.rb b/app/serializers/admin/abuse_report_entity.rb
index 106467d4018..54916d02ecb 100644
--- a/app/serializers/admin/abuse_report_entity.rb
+++ b/app/serializers/admin/abuse_report_entity.rb
@@ -3,12 +3,14 @@
module Admin
class AbuseReportEntity < Grape::Entity
include RequestAwareEntity
+ include MarkupHelper
expose :category
+ expose :created_at
expose :updated_at
expose :reported_user do |report|
- UserEntity.represent(report.user, only: [:name])
+ UserEntity.represent(report.user, only: [:name, :created_at])
end
expose :reporter do |report|
@@ -38,5 +40,9 @@ module Admin
expose :remove_user_and_report_path do |report|
admin_abuse_report_path(report, remove_user: true)
end
+
+ expose :message do |report|
+ markdown_field(report, :message)
+ end
end
end