fix(moderation): treat age_restricted skipped messages as clean instead of error
This commit is contained in:
@@ -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.",
|
||||||
|
|||||||
Reference in New Issue
Block a user