mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Extend restriction to all categories
This commit is contained in:
@@ -21,14 +21,14 @@ export async function canSubmit(userID: HashedUserID, category: Category): Promi
|
||||
hasFeature(userID, Feature.ChapterSubmitter)
|
||||
])
|
||||
};
|
||||
case "filler":
|
||||
default:
|
||||
return {
|
||||
canSubmit: await oneOf([isUserVIP(userID),
|
||||
(async () => (await getReputation(userID)) > config.minReputationToSubmitFiller)(),
|
||||
hasFeature(userID, Feature.FillerSubmitter),
|
||||
(async () => (await db.prepare("get", `SELECT count(*) as "submissionCount" FROM "sponsorTimes" WHERE "userID" = ? AND category != 'filler' AND "timeSubmitted" < 1654010691000 LIMIT 4`, [userID], { useReplica: true }))?.submissionCount > 3)()
|
||||
]),
|
||||
reason: "Someone has submitted over 1.9 million spam filler submissions and refuses to stop even after talking with them, so we have to restrict it for now. You can request submission access on chat.sponsor.ajay.app/#filler, discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app"
|
||||
reason: "Unfortunately, someone is doing a targetd attack and as a temporary emergency measure, segment submission for new users is disabled. You can request submission access on chat.sponsor.ajay.app/#filler, discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user