From c14c5f48261e16338156df5be056c916a2d6187c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 31 Jan 2022 00:53:17 +0200 Subject: [PATCH] c --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index bd5ff03af..c8c5625f4 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -219,7 +219,7 @@ def api_comment(v): try: marsey = loads(body.lower()) name = marsey["name"] - if "author" in marsey: author_id = get_user(marsey["author"]) + if "author" in marsey: author_id = get_user(marsey["author"]).id elif "author_id" in marsey: author_id = marsey["author_id"] else: abort(400) if not g.db.query(Marsey.name).filter_by(name=name).first():