about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authortrwnh <a@trwnh.com>2022-11-14 01:34:07 -0600
committerGitHub <noreply@github.com>2022-11-14 08:34:07 +0100
commitb59ce0a60ff4f90bb16a8c3338ad37218af052b8 (patch)
tree3a951a2fc21d3eaae75d455447a4d24476643881 /app/javascript
parent457c37e47ae51e09dfbfe687616415b3c8be13af (diff)
Move V2 Filter methods under /api/v2 prefix (#20622)
* Move V2 Filter methods under /api/v2 prefix

* move over the tests too
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/actions/filters.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/filters.js b/app/javascript/mastodon/actions/filters.js
index 76326802e..e9c609fc8 100644
--- a/app/javascript/mastodon/actions/filters.js
+++ b/app/javascript/mastodon/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 => {