From bb35a4cb054ba032ca6afdcd6359e46711e30753 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sat, 13 Jan 2024 10:45:39 +1300 Subject: [PATCH] dropdown menu minor bugfix --- app/post/routes.py | 5 ++++- app/templates/base.html | 4 ++-- app/user/routes.py | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) 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 %} -