From e6d091ef77ae229c7f9751f737a1f0e585184251 Mon Sep 17 00:00:00 2001 From: meltland Date: Mon, 10 Mar 2025 18:14:54 -0400 Subject: reply patch test 1 --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.py') diff --git a/main.py b/main.py index 9dd1db4..b9e000f 100644 --- a/main.py +++ b/main.py @@ -464,6 +464,13 @@ async def handler(websocket): await websocket.send(util.error(fc, listener)) continue data["author"] = author + incr = -1 + for j in data["replies"]: + incr += 1 + data = acc.get_author(j["author"]) + if type(data) != dict: + data = {} + data["replies"][incr]["author"] = data broadcast(clients, json.dumps({ "command": "new_post", "data": data -- cgit 1.4.1-2-gfad0