On fixe la détection des urls fb
This commit is contained in:
parent
4de99f328c
commit
875114a03b
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user