On fixe la détection des urls fb

This commit is contained in:
Jean-Marie Favreau 2025-01-11 14:12:57 +01:00
parent 4de99f328c
commit 875114a03b

View File

@ -22,7 +22,7 @@ def is_facebook_url(url):
if obj and obj.hostname:
return obj.hostname.endswith("facebook.com")
else:
return url
return False
@register.filter
def hostname_or_socialmedia(url):