parent
9d93d25432
commit
a3b20bc3f6
@ -2050,6 +2050,16 @@ class Event(models.Model):
|
||||
self.has_invalid_start_time() or event.has_invalid_start_time()
|
||||
):
|
||||
continue
|
||||
# only consider path for Facebook urls
|
||||
if (
|
||||
r["key"] == "image"
|
||||
and len(r["values"]) > 0
|
||||
and "fbcdn.net" in r["values"][0]
|
||||
):
|
||||
nb = len(set([urlparse(url).path for url in r["values"]]))
|
||||
if nb == 1:
|
||||
continue
|
||||
|
||||
return False
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user