tre\
parent
78dc8746ca
commit
312a6b75f7
|
@ -95,7 +95,7 @@ def sanitize_marquee(tag, name, value):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
allowed_attributes = {
|
allowed_attributes = {
|
||||||
'*': ['href', 'style', 'src', 'class', 'title', 'loading'],
|
'*': ['href', 'style', 'src', 'title', 'loading'],
|
||||||
'marquee': sanitize_marquee}
|
'marquee': sanitize_marquee}
|
||||||
|
|
||||||
allowed_protocols = ['http', 'https']
|
allowed_protocols = ['http', 'https']
|
||||||
|
|
|
@ -51,11 +51,11 @@ def speak(data, v):
|
||||||
|
|
||||||
data={
|
data={
|
||||||
"avatar": v.profile_url,
|
"avatar": v.profile_url,
|
||||||
"username":v.username,
|
"username": v.username,
|
||||||
"namecolor":v.namecolor,
|
"namecolor": v.namecolor,
|
||||||
"text":text,
|
"text": text,
|
||||||
"text_html":text_html,
|
"text_html": text_html,
|
||||||
"text_censored":censor_slurs(text_html, 'chat')
|
"text_censored": censor_slurs(text_html, 'chat')
|
||||||
}
|
}
|
||||||
|
|
||||||
if v.shadowbanned:
|
if v.shadowbanned:
|
||||||
|
|
Loading…
Reference in New Issue