bring back reactions
This commit is contained in:
@@ -35,6 +35,13 @@ def ownership_or_mod_required(view_func):
|
||||
return view_func(*args, **kwargs)
|
||||
return wrapper
|
||||
|
||||
@bp.get('/<int:post_id>/')
|
||||
def post_by_id(post_id):
|
||||
post = get_post_url(post_id, _anchor=True)
|
||||
if not post:
|
||||
abort(404)
|
||||
return redirect(post)
|
||||
|
||||
@bp.get('/<int:post_id>/edit/')
|
||||
@login_required
|
||||
@ownership_required
|
||||
|
||||
Reference in New Issue
Block a user