From 518509be78dfcc631553545b58cfb0817463a330 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 3 Aug 2021 19:33:13 +0200 Subject: [PATCH] fdfd --- drama/routes/comments.py | 2 +- drama/routes/posts.py | 2 +- drama/routes/votes.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drama/routes/comments.py b/drama/routes/comments.py index 319320f69..f70f00400 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -309,7 +309,7 @@ def api_comment(v): level=level, over_18=parent_post.over_18 or request.form.get("over_18","")=="true", is_bot=is_bot, - # app_id=v.client.application.id if v.client else None, + app_id=v.client.application.id if v.client else None, shadowbanned=v.shadowbanned ) g.db.add(c) diff --git a/drama/routes/posts.py b/drama/routes/posts.py index a0a0f5089..b5ae29edf 100644 --- a/drama/routes/posts.py +++ b/drama/routes/posts.py @@ -775,7 +775,7 @@ def submit_post(v): private=bool(request.form.get("private","")), author_id=v.id, over_18=bool(request.form.get("over_18","")), - # app_id=v.client.application.id if v.client else None, + app_id=v.client.application.id if v.client else None, is_bot = request.headers.get("X-User-Type","").lower()=="bot" ) diff --git a/drama/routes/votes.py b/drama/routes/votes.py index 7f4e1f714..59581ef52 100644 --- a/drama/routes/votes.py +++ b/drama/routes/votes.py @@ -87,7 +87,7 @@ def api_vote_post(post_id, new, v): vote = Vote(user_id=v.id, vote_type=new, submission_id=post_id, - # app_id=v.client.application.id if v.client else None + app_id=v.client.application.id if v.client else None ) g.db.add(vote) @@ -135,7 +135,7 @@ def api_vote_comment(comment_id, new, v): vote = CommentVote(user_id=v.id, vote_type=new, comment_id=comment_id, - # app_id=v.client.application.id if v.client else None + app_id=v.client.application.id if v.client else None ) g.db.add(vote)