|
|
|
@ -8,6 +8,7 @@ from suchwow import config
|
|
|
|
|
from suchwow.models import Post, Comment
|
|
|
|
|
from suchwow.utils.decorators import login_required, profile_required, moderator_required
|
|
|
|
|
from suchwow.utils.helpers import allowed_file, is_moderator, get_session_user
|
|
|
|
|
from suchwow.app import post_meme
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bp = Blueprint("post", "post")
|
|
|
|
@ -108,6 +109,7 @@ def approve(id):
|
|
|
|
|
if post:
|
|
|
|
|
post.approved = True
|
|
|
|
|
post.save()
|
|
|
|
|
post_meme(post.id)
|
|
|
|
|
flash("Approved")
|
|
|
|
|
return redirect(url_for("mod_queue"))
|
|
|
|
|
else:
|
|
|
|
|