fix: I just want to read my code, ok?

This commit is contained in:
mdwalters
2023-09-10 00:33:39 -04:00
parent 481ae6e467
commit 88dbd66943

View File

@@ -140,11 +140,7 @@ class LemonadeWindow(Gtk.ApplicationWindow):
if not "description" in community["community"]:
label.set_markup(f"""<big><b>{community["community"]["title"]}</b></big> <small>!{community["community"]["name"]}@{community["community"]["actor_id"].split("/")[2]}</small>""")
else:
split = community["community"]["description"]
.split("\n")[0]
.replace("&", "&amp;")
.replace("<", "&what;")
.replace(">", "&what;")
split = community["community"]["description"].split("\n")[0].replace("&", "&amp;").replace("<", "&what;").replace(">", "&what;")
label.set_markup(f"""<big><b>{community["community"]["title"]}</b></big> <small>!{community["community"]["name"]}@{community["community"]["actor_id"].split("/")[2]}</small>
{split}""")