fdfd
This commit is contained in:
parent
2273fcfa26
commit
5b547527e1
2 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ def api_comment(v):
|
||||||
level=level,
|
level=level,
|
||||||
over_18=parent_post.over_18 or request.form.get("over_18","")=="true",
|
over_18=parent_post.over_18 or request.form.get("over_18","")=="true",
|
||||||
is_bot=is_bot,
|
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
|
shadowbanned=v.shadowbanned
|
||||||
)
|
)
|
||||||
g.db.add(c)
|
g.db.add(c)
|
||||||
|
|
|
@ -775,7 +775,7 @@ def submit_post(v):
|
||||||
private=bool(request.form.get("private","")),
|
private=bool(request.form.get("private","")),
|
||||||
author_id=v.id,
|
author_id=v.id,
|
||||||
over_18=bool(request.form.get("over_18","")),
|
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"
|
is_bot = request.headers.get("X-User-Type","").lower()=="bot"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue