From 5486b1fca23495bb785f3156d0480173f46a8813 Mon Sep 17 00:00:00 2001 From: Massedil Date: Wed, 18 Jun 2025 18:16:11 +0200 Subject: [PATCH] Always fetch the latest posts from the server in the post list --- src/views/Posts/ListView.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/Posts/ListView.vue b/src/views/Posts/ListView.vue index 3ac5831e4..105942b61 100644 --- a/src/views/Posts/ListView.vue +++ b/src/views/Posts/ListView.vue @@ -114,7 +114,11 @@ const { result: groupPostsResult, loading: groupLoading } = useQuery<{ page: postsPage.value, limit: POSTS_PAGE_LIMIT, }), - () => ({ enabled: props.preferredUsername !== undefined }) + () => ({ + enabled: props.preferredUsername !== undefined, + // always display the latest information + fetchPolicy: "cache-and-network", + }) ); const group = computed(() => groupPostsResult.value?.group);