Skip to content

Commit

Permalink
chore: explain behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Mar 29, 2024
1 parent 6a1a449 commit 4254085
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/api/moderation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ export const ContextProfileList = 5;

export type ModerationContext = 0 | 1 | 2 | 3 | 4 | 5;

/** Label should cause blurring */
const BehaviorBlur = 0;
/** Label should cause blurring if it has the adult flag, fallback to alert/inform if it isn't */
const BehaviorBlurIfAdultOrAlert = 1;
/** Label should be alerted/informed */
const BehaviorAlertOrInform = 2;

type ModerationBehavior = 0 | 1 | 2;
Expand Down

0 comments on commit 4254085

Please sign in to comment.