From f1f9c8f902e9d45c2615b7cb045e3153c1ce5f2c Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 7 Mar 2026 01:37:48 +0000 Subject: [PATCH] Add type to communications response --- api/communication.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/communication.go b/api/communication.go index ae6c7903..a15d19f7 100644 --- a/api/communication.go +++ b/api/communication.go @@ -114,6 +114,8 @@ func listCommunication(ctx context.Context, r *http.Request, org *models.Organiz name = *report.ReporterName } comms[i] = communication{ + Created: report.Created, + ID: report.PublicID, PublicReport: publicReport{ Address: Address{ Country: report.AddressCountry, @@ -134,8 +136,7 @@ func listCommunication(ctx context.Context, r *http.Request, org *models.Organiz HasPhone: report.ReporterPhone != nil, }, }, - Created: report.Created, - ID: report.PublicID, + Type: "nuisance", } } return &contentListCommunication{