This commit is contained in:
Ashley Graves 2024-11-03 00:08:52 +01:00
parent 12fc473b48
commit a1bd9bf038

View file

@ -153,7 +153,7 @@ module.exports = {
if (post.booru.domain == "gelbooru.com" && post.rating == "s") if (post.booru.domain == "gelbooru.com" && post.rating == "s")
post.rating = "q"; post.rating = "q";
const fileName = (post.rating != "g" ? "SPOILER_" : "") + basename(post.fileUrl); const fileName = (!["g", "s"].includes(post.rating) ? "SPOILER_" : "") + basename(post.fileUrl);
const ext = extname(fileName).toLowerCase(); const ext = extname(fileName).toLowerCase();
const leadingDescription = [ const leadingDescription = [