From 555f45f2491f96a2dd1b8a957198ddf78c9bda30 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 27 Mar 2024 16:49:02 +0100 Subject: [PATCH] [Glitch] Fix notifications marker fetch Port b9982ce578c24fa2dcdbe4fb79610345257681df to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/actions/markers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/actions/markers.ts b/app/javascript/flavours/glitch/actions/markers.ts index 5afb2cb109..78362a9ca3 100644 --- a/app/javascript/flavours/glitch/actions/markers.ts +++ b/app/javascript/flavours/glitch/actions/markers.ts @@ -156,8 +156,10 @@ export const submitMarkers = createAppAsyncThunk( export const fetchMarkers = createAppAsyncThunk( 'markers/fetch', async (_args, { getState }) => { - const response = - await api(getState).get>(`/api/v1/markers`); + const response = await api(getState).get>( + `/api/v1/markers`, + { params: { timeline: ['notifications'] } }, + ); return { markers: response.data }; },