Skip to content

Commit 71661cd

Browse files
authored
Updated email in report notification: title, timestamp, message, violation (#7991)
1 parent 8b856ac commit 71661cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/lib/frontend/handlers/report.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,14 @@ Future<String> processReportPageHandler(
216216
});
217217

218218
final kind = isAppeal ? 'appeal' : 'report';
219-
final kindLabel = isAppeal ? 'moderation appeal' : 'content report';
219+
final kindLabel = isAppeal ? 'moderation appeal' : 'content policy violation';
220220
final bodyText = <String>[
221-
'New $kind received on ${now.toIso8601String()}: $caseId',
221+
'New $kind received on ${now.toIso8601String().split('T').first}: $caseId',
222222
if (form.url != null) 'URL: ${form.url}',
223223
if (isAppeal) 'Appealed case ID: ${form.caseId}',
224+
if (!isAppeal) 'Violated policy: https://pub.dev/policy',
224225
'Subject: ${subject.fqn}',
225-
'Message:\n${form.message}',
226+
'Message:\n---\${form.message}\n---',
226227
'This $kind will be processed by the moderation team.',
227228
].join('\n\n');
228229

0 commit comments

Comments
 (0)