forked from tildeverse/tilde.chat
print channel name unquoted
This commit is contained in:
parent
9a09ce25fd
commit
435cf05a90
|
@ -2,7 +2,6 @@
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from urllib.parse import quote
|
|
||||||
|
|
||||||
WORK_DIR = "/var/www/tilde.chat"
|
WORK_DIR = "/var/www/tilde.chat"
|
||||||
out = {}
|
out = {}
|
||||||
|
@ -52,7 +51,7 @@ for c in root.findall("./channellist/channel"):
|
||||||
name=name,
|
name=name,
|
||||||
topic=unsanitize(c.find("./channeltopic/topictext"), "no topic set"),
|
topic=unsanitize(c.find("./channeltopic/topictext"), "no topic set"),
|
||||||
usercount=int(c.find("usercount").text),
|
usercount=int(c.find("usercount").text),
|
||||||
webchatlink="https://kiwi.tilde.chat/" + quote(name),
|
webchatlink="https://kiwi.tilde.chat/" + name,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user