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
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
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,
}