From b2270fd37d15e83b3fad746c4ba66cbfd036eafd Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Thu, 22 Apr 2021 16:52:36 -0700 Subject: [PATCH] Fix for exclusive lists not working Params were in the wrong order so I was passing "isExclusive" to "replies_policy", oops. --- app/javascript/mastodon/actions/lists.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/actions/lists.js b/app/javascript/mastodon/actions/lists.js index b4d2679a9..9c21cb184 100644 --- a/app/javascript/mastodon/actions/lists.js +++ b/app/javascript/mastodon/actions/lists.js @@ -157,7 +157,7 @@ export const createListFail = error => ({ error, }); -export const updateList = (id, title, shouldReset, replies_policy, isExclusive) => (dispatch, getState) => { +export const updateList = (id, title, shouldReset, isExclusive, replies_policy) => (dispatch, getState) => { dispatch(updateListRequest(id)); api(getState).put(`/api/v1/lists/${id}`, { title, replies_policy, is_exclusive: !!isExclusive }).then(({ data }) => {