This commit is contained in:
Aevann1 2021-11-23 15:48:10 +02:00
parent 7cd2dc62f9
commit 6e5fdb50f7
9 changed files with 18 additions and 25 deletions

View file

@ -520,6 +520,11 @@ def submit_post(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')
title = request.values.get("title", "").strip()
url = request.values.get("url", "").strip()
title_html = filter_title(title)