File tree Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -421,12 +421,14 @@ String consentDedupId({
421421 .join ('/' );
422422
423423abstract class UserModeratedReason {
424+ static const bot = 'bot' ;
424425 static const illegalContent = 'illegal-content' ;
425426 static const policyViolation = 'policy-violation' ;
426427 static const unfoundedNotifications = 'unfounded-notifications' ;
427428 static const unfoundedAppeals = 'unfounded-appeals' ;
428429
429430 static const _values = {
431+ bot,
430432 illegalContent,
431433 policyViolation,
432434 unfoundedNotifications,
Original file line number Diff line number Diff line change @@ -234,7 +234,6 @@ abstract class ModerationStatus {
234234 static bool isValidStatus (String value) => _values.contains (value);
235235 static bool wasModerationApplied (String value) =>
236236 value == ModerationStatus .moderationApplied ||
237- value == ModerationStatus .moderationUpheld ||
238237 value == ModerationStatus .noActionReverted;
239238}
240239
Original file line number Diff line number Diff line change @@ -129,10 +129,7 @@ void main() {
129129
130130 final mc = await _prepare (apply: null , appealCaseId: mc1.caseId);
131131 expect (
132- await _close (
133- mc.caseId,
134- reason: 'The package violated our policy.' ,
135- ),
132+ await _close (mc.caseId),
136133 'moderation-upheld' ,
137134 );
138135 });
Original file line number Diff line number Diff line change @@ -214,9 +214,6 @@ void main() {
214214 AdminInvokeActionArguments (
215215 arguments: {
216216 'case' : appealCaseId,
217- 'grounds' : 'policy' ,
218- 'violation' : 'scope_of_platform_service' ,
219- 'reason' : 'Package violated our policy.' ,
220217 },
221218 ),
222219 );
You can’t perform that action at this time.
0 commit comments