diff options
author | meltland <[email protected]> | 2025-03-10 18:14:54 -0400 |
---|---|---|
committer | meltland <[email protected]> | 2025-03-10 18:14:54 -0400 |
commit | e6d091ef77ae229c7f9751f737a1f0e585184251 (patch) | |
tree | 9631adf70c90492458a135acefc2196c69738c1d /main.py | |
parent | 64a2cbf19384761e909eb2def7f35f9f95f9bc07 (diff) |
reply patch test 1
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |