summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
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