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