mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 22:18:06 +01:00
Fix notifications marker fetch (#29777)
This commit is contained in:
parent
9fbe8d3a0c
commit
b9982ce578
1 changed files with 4 additions and 2 deletions
|
@ -155,8 +155,10 @@ export const submitMarkers = createAppAsyncThunk(
|
||||||
export const fetchMarkers = createAppAsyncThunk(
|
export const fetchMarkers = createAppAsyncThunk(
|
||||||
'markers/fetch',
|
'markers/fetch',
|
||||||
async (_args, { getState }) => {
|
async (_args, { getState }) => {
|
||||||
const response =
|
const response = await api(getState).get<Record<string, MarkerJSON>>(
|
||||||
await api(getState).get<Record<string, MarkerJSON>>(`/api/v1/markers`);
|
`/api/v1/markers`,
|
||||||
|
{ params: { timeline: ['notifications'] } },
|
||||||
|
);
|
||||||
|
|
||||||
return { markers: response.data };
|
return { markers: response.data };
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue