summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authormeltland <[email protected]>2025-03-10 18:14:54 -0400
committermeltland <[email protected]>2025-03-10 18:14:54 -0400
commite6d091ef77ae229c7f9751f737a1f0e585184251 (patch)
tree9631adf70c90492458a135acefc2196c69738c1d /main.py
parent64a2cbf19384761e909eb2def7f35f9f95f9bc07 (diff)
reply patch test 1
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
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