dsdsaasd'
This commit is contained in:
parent
3e5520c091
commit
506cf7defe
3 changed files with 12 additions and 12 deletions
|
@ -138,11 +138,6 @@ def api_comment(v):
|
|||
if request.content_length > 8 * 1024 * 1024: return "Max file size is 8 MB.", 413
|
||||
elif request.content_length > 4 * 1024 * 1024: return "Max file size is 4 MB.", 413
|
||||
|
||||
if v.agendaposter and random.randint(1, 10) < 7:
|
||||
if request.host == 'rdrama.net':
|
||||
return redirect(random.choice(['https://secure.actblue.com/donate/ms_blm_homepage_2019','https://rdrama.net/post/19711/a-short-guide-on-how-to','https://secure.transequality.org/site/Donation2?df_id=1480']))
|
||||
return redirect('https://secure.actblue.com/donate/ms_blm_homepage_2019')
|
||||
|
||||
parent_submission = request.values.get("submission").strip()
|
||||
parent_fullname = request.values.get("parent_fullname").strip()
|
||||
|
||||
|
@ -591,6 +586,11 @@ def api_comment(v):
|
|||
|
||||
g.db.commit()
|
||||
|
||||
if v.agendaposter and random.randint(1, 10) < 7:
|
||||
if request.host == 'rdrama.net':
|
||||
return redirect(random.choice(['https://secure.actblue.com/donate/ms_blm_homepage_2019','https://rdrama.net/post/19711/a-short-guide-on-how-to','https://secure.transequality.org/site/Donation2?df_id=1480']))
|
||||
return redirect('https://secure.actblue.com/donate/ms_blm_homepage_2019')
|
||||
|
||||
if request.headers.get("Authorization"): return c.json
|
||||
else: return render_template("comments.html", v=v, comments=[c])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue