From 48bf361028b3f88c9361832b0860b9b927774468 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 16 Aug 2021 00:35:54 +0200 Subject: [PATCH] css --- files/routes/flagging.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/routes/flagging.py b/files/routes/flagging.py index b502324da..4e9087e2c 100644 --- a/files/routes/flagging.py +++ b/files/routes/flagging.py @@ -50,6 +50,11 @@ def api_flag_comment(cid, v): if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'): reason = reason.replace(f':{i.group(1)}:', f'') + flag = CommentFlag(post_id=post.id, + user_id=v.id, + reason=reason, + ) + g.db.add(flag) return "", 204 \ No newline at end of file