[Glitch] Fix notifications marker fetch

Port b9982ce578 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput 2024-03-27 16:49:02 +01:00 committed by Claire
parent 371c5e59eb
commit 555f45f249
1 changed files with 4 additions and 2 deletions

View File

@ -156,8 +156,10 @@ export const submitMarkers = createAppAsyncThunk(
export const fetchMarkers = createAppAsyncThunk(
'markers/fetch',
async (_args, { getState }) => {
const response =
await api(getState).get<Record<string, MarkerJSON>>(`/api/v1/markers`);
const response = await api(getState).get<Record<string, MarkerJSON>>(
`/api/v1/markers`,
{ params: { timeline: ['notifications'] } },
);
return { markers: response.data };
},