mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-10 02:17:59 +00:00
irc: another layer of unescaping
This commit is contained in:
parent
786f9162b4
commit
2cfffd0693
|
@ -248,6 +248,7 @@ class IRCProtocol(asyncio.Protocol):
|
||||||
def relay_message(self, actor, obj, content):
|
def relay_message(self, actor, obj, content):
|
||||||
fmt = "\x02{name}\x02: {content} [{url}]"
|
fmt = "\x02{name}\x02: {content} [{url}]"
|
||||||
|
|
||||||
|
content = html.unescape(content)
|
||||||
content = html.unescape(content)
|
content = html.unescape(content)
|
||||||
msgcontent = content[0:256]
|
msgcontent = content[0:256]
|
||||||
if len(content) > 256:
|
if len(content) > 256:
|
||||||
|
|
Loading…
Reference in a new issue