facebook: do not request the source url & clean up

fixed a vulnerability, removed useless variables, and cleaned up

thankfully we haven't built the image yesterday
This commit is contained in:
wukko
2024-07-25 11:57:02 +06:00
parent faeb96848b
commit 83af16bb12
4 changed files with 24 additions and 30 deletions

View File

@@ -203,8 +203,7 @@ export default async function(host, patternMatch, lang, obj) {
break;
case "facebook":
r = await facebook({
...patternMatch,
sourceUrl: url.href
...patternMatch
});
break;
default: