diff --git a/app/post/routes.py b/app/post/routes.py index 4b70a6b2..4f66b7e2 100644 --- a/app/post/routes.py +++ b/app/post/routes.py @@ -178,7 +178,10 @@ def show_post(post_id: int): description=description, og_image=og_image, POST_TYPE_IMAGE=constants.POST_TYPE_IMAGE, POST_TYPE_LINK=constants.POST_TYPE_LINK, POST_TYPE_ARTICLE=constants.POST_TYPE_ARTICLE, etag=f"{post.id}{sort}_{hash(post.last_active)}", markdown_editor=True, - low_bandwidth=request.cookies.get('low_bandwidth', '0') == '1', SUBSCRIPTION_MEMBER=SUBSCRIPTION_MEMBER) + low_bandwidth=request.cookies.get('low_bandwidth', '0') == '1', SUBSCRIPTION_MEMBER=SUBSCRIPTION_MEMBER, + moderating_communities=moderating_communities(current_user.get_id()), + joined_communities=joined_communities(current_user.get_id()) + ) @bp.route('/post//', methods=['GET', 'POST']) diff --git a/app/templates/base.html b/app/templates/base.html index 5cb66a48..7a943865 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -68,10 +68,10 @@ {% endif %} {% endblock %} - + {% block navbar %} -