From 9bb6ee06d3e7572409053c676695aae8f97d38f3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 3 Sep 2021 23:08:53 +0200 Subject: [PATCH] fddf --- files/routes/comments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 17eec3b1bc..74857df546 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -296,7 +296,7 @@ def api_comment(v): g.db.flush() if c.parent_comment and c_aux.body.lower().startswith("based"): - c_based = Comment(author_id=800, + c_based = Comment(author_id=1, parent_submission=parent_submission, distinguish_level=6, parent_comment_id=c.id, @@ -325,6 +325,7 @@ def api_comment(v): ) g.db.add(c_aux) g.db.flush() + n = Notification(comment_id=c_based.id, user_id=v.id) g.db.add(n)