add a message after posting so dummies stop doing it 3 times

This commit is contained in:
lza_menace 2021-01-29 01:36:12 -08:00
parent 00abdd5fd0
commit 7527bbfc2b
1 changed files with 2 additions and 1 deletions

View File

@ -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/<id>/approve")