From 7527bbfc2bd7c5b1ad0cdcd82a4c1ba799199ae5 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 29 Jan 2021 01:36:12 -0800 Subject: [PATCH] add a message after posting so dummies stop doing it 3 times --- suchwow/routes/post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/suchwow/routes/post.py b/suchwow/routes/post.py index eddb2b4..70888c2 100644 --- a/suchwow/routes/post.py +++ b/suchwow/routes/post.py @@ -112,7 +112,8 @@ def create(): post.save_thumbnail() url = url_for('post.read', id=post.id, _external=True) post_webhook(f"New post :doge2: [{post.id}]({url}) by `{submitter}` :neckbeard:") - return redirect(url) + flash("New post created and pending approval!") + return redirect(url_for("index")) return render_template("post/create.html") @bp.route("/post//approve")