Fix linting
This commit is contained in:
parent
553ba9db9a
commit
bb5189c9ed
35 changed files with 157 additions and 866 deletions
|
@ -20,7 +20,7 @@ function userAgentCheck(userAgent) {
|
|||
}
|
||||
|
||||
function referrerCheck(referrer) {
|
||||
return referrer && referrerRegexes.some((regex) => referrer.match(regex));
|
||||
return referrer && referrerRegexes.some(regex => referrer.match(regex));
|
||||
}
|
||||
|
||||
function hotlinkCheck(file, userAgent, referrer) {
|
||||
|
@ -52,7 +52,7 @@ export async function get(ctx) {
|
|||
}
|
||||
|
||||
if (file.malware) {
|
||||
const alert = ctx.request.query.alert;
|
||||
const { alert } = ctx.request.query;
|
||||
if (!alert || !alert.match(/i want to download malware/i)) {
|
||||
ctx.redirect(`/${file.id}`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue