author-followers-fix

This commit is contained in:
2025-05-30 13:48:02 +03:00
parent 6ba5c04564
commit f8ad73571c
4 changed files with 36 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ async def get_all_authors(current_user_id=None):
authors = session.execute(authors_query).scalars().unique().all()
# Преобразуем авторов в словари с учетом прав доступа
return [author.dict(current_user_id, False) for author in authors]
return [author.dict(access=False) for author in authors]
# Используем универсальную функцию для кеширования запросов
return await cached_query(cache_key, fetch_all_authors)