Always show followers/following page when admin

This commit is contained in:
Thomas Sileo 2022-09-13 22:33:20 +02:00
parent df06defbef
commit 4c86cd4be3
2 changed files with 4 additions and 4 deletions

View file

@ -446,7 +446,7 @@ async def followers(
)
)
if config.HIDES_FOLLOWERS:
if config.HIDES_FOLLOWERS and not is_current_user_admin(request):
raise HTTPException(status_code=404)
# We only show the most recent 20 followers on the public website
@ -505,7 +505,7 @@ async def following(
)
)
if config.HIDES_FOLLOWING:
if config.HIDES_FOLLOWING and not is_current_user_admin(request):
raise HTTPException(status_code=404)
# We only show the most recent 20 follows on the public website

View file

@ -36,10 +36,10 @@
{% if articles_count %}
<li>{{ header_link("articles", "Articles") }}</li>
{% endif %}
{% if not HIDES_FOLLOWERS %}
{% if not HIDES_FOLLOWERS or is_admin %}
<li>{{ header_link("followers", "Followers") }} <span class="counter">{{ followers_count }}</span></li>
{% endif %}
{% if not HIDES_FOLLOWING %}
{% if not HIDES_FOLLOWING or is_admin %}
<li>{{ header_link("following", "Following") }} <span class="counter">{{ following_count }}</span></li>
{% endif %}
<li>{{ header_link("get_remote_follow", "Remote follow") }}</li>