Beispiel #1
0
def delete_comment(comment_id):
    comment = Comment.get_comment_by_comment_id(comment_id)
    post_id = comment.post_id
    Comment.delete_by_comment_id(comment_id)
    return redirect(url_for('show_post_detail', post_id=post_id))