remotes/1693045480750635534/spooky-22
Aevann1 2021-07-26 04:45:35 +02:00
parent 046e8e17fc
commit a1c6ea4017
1 changed files with 2 additions and 4 deletions

View File

@ -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()