From 3d3a7e9ba181ec9d34368d20e21c5973f253d145 Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 4 Jun 2026 12:52:07 +0300 Subject: [PATCH] fix: similar questions sidebar tiles not showing user forecasts --- front_end/src/services/api/posts/posts.shared.ts | 3 +-- posts/views.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front_end/src/services/api/posts/posts.shared.ts b/front_end/src/services/api/posts/posts.shared.ts index 8d16a60c99..36f71ed555 100644 --- a/front_end/src/services/api/posts/posts.shared.ts +++ b/front_end/src/services/api/posts/posts.shared.ts @@ -197,8 +197,7 @@ class PostsApi extends ApiService { async getSimilarPosts(postId: number): Promise { return await this.get( - `/posts/${postId}/similar-posts/`, - { next: { revalidate: 1800 } } + `/posts/${postId}/similar-posts/` ); } diff --git a/posts/views.py b/posts/views.py index 56501487c6..eceec177d4 100644 --- a/posts/views.py +++ b/posts/views.py @@ -580,6 +580,7 @@ def post_similar_posts_api_view(request: Request, pk): group_cutoff=1, include_cp_history=True, current_user=request.user if request.user.is_authenticated else None, + include_user_forecasts=True, ) return Response(posts)