Add basic open articles for future feat. & ran prettier & now fetches data from the cloud aka line today.

This commit is contained in:
yuanhau 2025-05-26 10:17:12 +08:00
parent 96a7a3372c
commit 0c6f0cbcd8
11 changed files with 98 additions and 224 deletions

View file

@ -8,7 +8,7 @@ async function checkUnsafeContent(title: string) {
const res = await req.json();
const ac = new AhoCorasick(res.words);
const kidfriendly = ac.hasKeywordInText(title);
return kidfriendly;
return kidfriendly;
} catch (e) {
console.log(e);
}