forked from rDrama/rDrama
NZ geoblock
parent
0b8891b673
commit
1afb393f98
|
@ -1134,7 +1134,7 @@ class User(Base):
|
||||||
if request.headers.get("Cf-Ipcountry") == 'NZ':
|
if request.headers.get("Cf-Ipcountry") == 'NZ':
|
||||||
if 'christchurch' in other.title.lower():
|
if 'christchurch' in other.title.lower():
|
||||||
return False
|
return False
|
||||||
if SITE == 'watchpeopledie.tv' and other.id == 5:
|
if SITE == 'watchpeopledie.tv' and other.id in {5, 17212, 22653, 23814}:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
if hasattr(other, 'is_blocking') and other.is_blocking and not request.path.endswith(f'/{other.id}'):
|
if hasattr(other, 'is_blocking') and other.is_blocking and not request.path.endswith(f'/{other.id}'):
|
||||||
|
|
Loading…
Reference in New Issue