mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of gitlab.com:bashrc2/epicyon
commit
49b1d817a9
|
@ -12167,7 +12167,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.cw_lists,
|
self.server.cw_lists,
|
||||||
self.server.lists_enabled,
|
self.server.lists_enabled,
|
||||||
timezone, bold_reading,
|
timezone, bold_reading,
|
||||||
self.server.replies)
|
self.server.dogwhistles)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
msglen = len(msg)
|
msglen = len(msg)
|
||||||
self._set_headers('text/html', msglen,
|
self._set_headers('text/html', msglen,
|
||||||
|
|
|
@ -1574,7 +1574,8 @@ def _add_dogwhistle_warnings(summary: str, content: str,
|
||||||
if translate.get(whistle_str):
|
if translate.get(whistle_str):
|
||||||
whistle_str = translate[whistle_str]
|
whistle_str = translate[whistle_str]
|
||||||
if summary:
|
if summary:
|
||||||
summary += ', ' + whistle_str
|
if whistle_str not in summary:
|
||||||
|
summary += ', ' + whistle_str
|
||||||
else:
|
else:
|
||||||
summary = whistle_str
|
summary = whistle_str
|
||||||
return summary
|
return summary
|
||||||
|
|
Loading…
Reference in New Issue