fix(moderation): treat age_restricted skipped messages as clean instead of error

This commit is contained in:
MythEclipse
2026-06-04 19:28:59 +07:00
parent d1d4510ce8
commit a965fb1e08
@@ -87,7 +87,7 @@ function isAgeRestrictedMessage(message: MessageRecord): boolean {
} }
function buildAgeRestrictedSkipResult(): { function buildAgeRestrictedSkipResult(): {
status: "error"; status: "clean";
flags: string | null; flags: string | null;
score: number; score: number;
analysis: string; analysis: string;
@@ -99,7 +99,7 @@ function buildAgeRestrictedSkipResult(): {
error: null; error: null;
} { } {
return { return {
status: "error", status: "clean",
flags: JSON.stringify(["age_restricted"]), flags: JSON.stringify(["age_restricted"]),
score: 0, score: 0,
analysis: "Skipped moderation for age-restricted content.", analysis: "Skipped moderation for age-restricted content.",