[Glitch] Fix notifications marker fetch
Port b9982ce578 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
371c5e59eb
commit
555f45f249
1 file changed
+4
-2
@@ -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 };
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user