diff --git a/src/routes/getBranding.ts b/src/routes/getBranding.ts index f518f8a..f89a5fd 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -254,7 +254,7 @@ async function shouldKeepSubmission(submissions: BrandingDBSubmission[], type: B cache: { currentIP: Promise | null }): Promise<(_: unknown, index: number) => boolean> { const shouldKeep = await Promise.all(submissions.map(async (s) => { - if (s.shadowHidden != Visibility.HIDDEN) return true; + if (s.shadowHidden === Visibility.VISIBLE) return true; const table = type === BrandingSubmissionType.Title ? "titleVotes" : "thumbnailVotes"; const fetchData = () => privateDB.prepare("get", `SELECT "hashedIP" FROM "${table}" WHERE "UUID" = ?`, [s.UUID], { useReplica: true }) as Promise<{ hashedIP: HashedIP }>;