mirror of https://github.com/tootsuite/mastodon
Fix notifications marker fetch (#29777)
parent
9fbe8d3a0c
commit
b9982ce578
|
@ -155,8 +155,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 };
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue