about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authortrwnh <a@trwnh.com>2022-11-14 01:34:07 -0600
committerClaire <claire.github-309c@sitedethib.com>2022-11-14 09:17:59 +0100
commitc31e756644120cab650452e9d1c00a1e2f26ade4 (patch)
tree55c1b799be04cf83f425414dce762bf9403e2b85 /app
parent9db90d2ebee1b0f5e3361e47349471d36b25d415 (diff)
[Glitch] Move V2 Filter methods under /api/v2 prefix
Port b59ce0a60ff4f90bb16a8c3338ad37218af052b8 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/actions/filters.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/filters.js b/app/javascript/flavours/glitch/actions/filters.js
index 76326802e..e9c609fc8 100644
--- a/app/javascript/flavours/glitch/actions/filters.js
+++ b/app/javascript/flavours/glitch/actions/filters.js
@@ -43,7 +43,7 @@ export const fetchFilters = () => (dispatch, getState) => {
 export const createFilterStatus = (params, onSuccess, onFail) => (dispatch, getState) => {
   dispatch(createFilterStatusRequest());
 
-  api(getState).post(`/api/v1/filters/${params.filter_id}/statuses`, params).then(response => {
+  api(getState).post(`/api/v2/filters/${params.filter_id}/statuses`, params).then(response => {
     dispatch(createFilterStatusSuccess(response.data));
     if (onSuccess) onSuccess();
   }).catch(error => {