|
|
@ -112,7 +112,8 @@ def create():
|
|
|
|
post.save_thumbnail()
|
|
|
|
post.save_thumbnail()
|
|
|
|
url = url_for('post.read', id=post.id, _external=True)
|
|
|
|
url = url_for('post.read', id=post.id, _external=True)
|
|
|
|
post_webhook(f"New post :doge2: [{post.id}]({url}) by `{submitter}` :neckbeard:")
|
|
|
|
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")
|
|
|
|
return render_template("post/create.html")
|
|
|
|
|
|
|
|
|
|
|
|
@bp.route("/post/<id>/approve")
|
|
|
|
@bp.route("/post/<id>/approve")
|
|
|
|