From a1c6ea4017f0740e02c80455b78a00833dc76152 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 26 Jul 2021 04:45:35 +0200 Subject: [PATCH] dfdf --- drama/routes/comments.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drama/routes/comments.py b/drama/routes/comments.py index a64e97fdad..6151241b90 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -377,8 +377,6 @@ def api_comment(v): if badlink: return jsonify({"error": f"Remove the following link and try again: `{check_url}`. Reason: {badlink.reason_text}"}), 403 - if v.shadowbanned: shadowbanned = True - else: shadowbanned = False # create comment parent_id = parent_fullname.split("_")[1] post = get_post(parent_id) @@ -390,7 +388,7 @@ def api_comment(v): over_18=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, - shadowbanned=shadowbanned + shadowbanned=v.shadowbanned ) g.db.add(c) @@ -581,7 +579,7 @@ def api_comment(v): - if not shadowbanned: + if not v.shadowbanned: # queue up notification for parent author notify_users = set()