codePreviews: remove spoiler markdown from links smh

This commit is contained in:
Cynthia Foxwell 2023-12-05 11:20:42 -07:00
parent 460dd83d42
commit b665eb9e02

View file

@ -21,6 +21,7 @@ function unindent(str) {
}
async function processFile(link, spoiler = false) {
link = link.replaceAll("||", "").trim();
const res = await fetch(link);
if (!res.ok) return "";
if (!res.headers.get("Content-Type").startsWith("text/plain")) return "";