Explain rate limits on download page

This commit is contained in:
2022-02-28 16:57:54 +01:00
parent 7adc2f6d16
commit f8d89eb8e6
2 changed files with 62 additions and 16 deletions

View File

@@ -21,7 +21,11 @@ export const set_file = async file => {
return
} else if (file.abuse_type !== "") {
viewer_type = "abuse"
} else if (file.availability === "file_rate_limited_captcha_required") {
} else if (
file.availability !== "file_rate_limited_captcha_required" ||
file.availability !== "ip_download_limited_captcha_required" ||
file.availability !== "ip_transfer_limited_captcha_required"
) {
viewer_type = "rate_limit"
} else {
viewer_type = file_type(file)