Skip to content

Commit

Permalink
🐛 Use actual value of review state
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Nov 16, 2024
1 parent ea1aca3 commit d7fd302
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions automod/engine/fetch_account_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ func (e *Engine) GetAccountMeta(ctx context.Context, ident *identity.Identity) (
ap.AccountTags = dedupeStrings(rd.Moderation.SubjectStatus.Tags)
if rd.Moderation.SubjectStatus.ReviewState != nil {
switch *rd.Moderation.SubjectStatus.ReviewState {
case "#reviewOpen":
case "tools.ozone.moderation.defs#reviewOpen":
ap.ReviewState = ReviewStateOpen
case "#reviewEscalated":
case "tools.ozone.moderation.defs#reviewEscalated":
ap.ReviewState = ReviewStateEscalated
case "#reviewClosed":
case "tools.ozone.moderation.defs#reviewClosed":
ap.ReviewState = ReviewStateClosed
case "#reviewNone":
case "tools.ozone.moderation.defs#reviewNone":
ap.ReviewState = ReviewStateNone
}
}
Expand Down

0 comments on commit d7fd302

Please sign in to comment.