File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class User extends db.ExpandoModel<String> {
79
79
InvalidInputException .checkAnyOf (
80
80
moderatedReason,
81
81
'reason' ,
82
- UserModeratedReason ._values ,
82
+ UserModeratedReason .values ,
83
83
);
84
84
} else {
85
85
InvalidInputException .checkNull (moderatedReason, 'reason' );
@@ -416,13 +416,15 @@ abstract class UserModeratedReason {
416
416
static const bot = 'bot' ;
417
417
static const illegalContent = 'illegal-content' ;
418
418
static const policyViolation = 'policy-violation' ;
419
+ static const spam = 'spam' ;
419
420
static const unfoundedNotifications = 'unfounded-notifications' ;
420
421
static const unfoundedAppeals = 'unfounded-appeals' ;
421
422
422
- static const _values = {
423
+ static const values = {
423
424
bot,
424
425
illegalContent,
425
426
policyViolation,
427
+ spam,
426
428
unfoundedNotifications,
427
429
unfoundedAppeals,
428
430
};
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ The active web sessions of the user will be expired.
30
30
'case' :
31
31
'The ModerationCase.caseId that this action is part of (or `none`).' ,
32
32
'user' : 'The user-id or the email of the user to be moderated' ,
33
- 'reason' : 'The reason for user moderation.' ,
33
+ 'reason' :
34
+ 'The reason for user moderation. One of ${UserModeratedReason .values .join (', ' )}.' ,
34
35
'state' :
35
36
'Set moderated state true / false. Returns current state if omitted.' ,
36
37
'note' : 'Optional note to store (internal).'
You can’t perform that action at this time.
0 commit comments