summary refs log tree commit diff
diff options
context:
space:
mode:
authormeltland <[email protected]>2025-03-10 18:21:16 -0400
committermeltland <[email protected]>2025-03-10 18:21:16 -0400
commit66e51b47ac4e2cbd1639306ca6ec4e67af19974e (patch)
tree5c92b0534079283dbdd4ce8e278363545b1f3a5d
parent2af3d269efc092b2e540472c1cb64da2d24be860 (diff)
fix replies actually this time.
-rw-r--r--main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.py b/main.py
index 48d09ed..736d112 100644
--- a/main.py
+++ b/main.py
@@ -467,10 +467,10 @@ async def handler(websocket):
                 incr = -1

                 for j in data["replies"]:

                     incr += 1

-                    data = db.acc.get_author(j["author"])

-                    if type(data) != dict:

-                        data = {}

-                data["replies"][incr]["author"] = data

+                    reply_author = db.acc.get_author(j["author"])

+                    if type(reply_author) != dict:

+                        reply_author = {}

+                    data["replies"][incr]["author"] = reply_author

                 broadcast(clients, json.dumps({

                     "command": "new_post",

                     "data": data