[facebook] do not match '/permalink' URLs (#8679)

This commit is contained in:
Mike Fährmann
2025-12-10 19:39:53 +01:00
parent 1eaaffffbb
commit d85fa5fb14
2 changed files with 9 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ from ..cache import memcache
BASE_PATTERN = r"(?:https?://)?(?:[\w-]+\.)?facebook\.com"
USER_PATTERN = (rf"{BASE_PATTERN}/"
rf"(?!media/|photo/|photo.php|watch/)"
rf"(?!media/|photo/|photo.php|watch/|permalink.php)"
rf"(?:profile\.php\?id=|people/[^/?#]+/)?([^/?&#]+)")