From d532dfa00a29c778e5b4b189a105be0d2e39cecb Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Tue, 4 Apr 2023 12:04:19 -0700 Subject: [PATCH] labeling: fix missing Reason (yay tests) --- labeling/admin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/labeling/admin.go b/labeling/admin.go index a588573c..13b6f4bc 100644 --- a/labeling/admin.go +++ b/labeling/admin.go @@ -176,6 +176,7 @@ func (s *Server) hydrateModerationReports(ctx context.Context, rows []models.Mod view := &comatproto.AdminDefs_ReportView{ Id: int64(row.ID), + Reason: row.Reason, ReasonType: &row.ReasonType, Subject: subj, ReportedBy: row.ReportedByDid, @@ -210,6 +211,7 @@ func (s *Server) hydrateModerationReportDetails(ctx context.Context, rows []mode viewDetail := &comatproto.AdminDefs_ReportViewDetail{ Id: int64(row.ID), + Reason: row.Reason, ReasonType: &row.ReasonType, Subject: subj, ReportedBy: row.ReportedByDid, -- 2.51.2