mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-05-11 18:36:17 +02:00
Fix dearrow hiding
This commit is contained in:
parent
314461c9f0
commit
e519986027
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ async function shouldKeepSubmission(submissions: BrandingDBSubmission[], type: B
|
|||
cache: { currentIP: Promise<HashedIP> | 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 }>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue