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

@@ -68,5 +68,6 @@ export const testers = {
patternMatch.shortLink?.length <= 11
|| patternMatch.username?.length <= 30
|| patternMatch.caption?.length <= 255
|| patternMatch.id?.length <= 20,
|| patternMatch.id?.length <= 20 && !patternMatch.shareType
|| patternMatch.id?.length <= 20 && patternMatch.shareType?.length === 1,
}