mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
Add basic open articles for future feat. & ran prettier & now fetches data from the cloud aka line today.
This commit is contained in:
parent
96a7a3372c
commit
0c6f0cbcd8
11 changed files with 98 additions and 224 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue