From b9982ce578c24fa2dcdbe4fb79610345257681df Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 27 Mar 2024 16:49:02 +0100 Subject: [PATCH] Fix notifications marker fetch (#29777) --- app/javascript/mastodon/actions/markers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/actions/markers.ts b/app/javascript/mastodon/actions/markers.ts index 4e90a9c6bd..84e5b33bcc 100644 --- a/app/javascript/mastodon/actions/markers.ts +++ b/app/javascript/mastodon/actions/markers.ts @@ -155,8 +155,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 }; },