From fa91defea0d7371247339f5e0babf46dac8663c3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 13 Jul 2021 18:35:37 -0500 Subject: [PATCH] Rename 'dirty' to 'should_refetch' --- app/soapbox/actions/accounts.js | 2 +- app/soapbox/reducers/accounts.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/soapbox/actions/accounts.js b/app/soapbox/actions/accounts.js index 39a7a2ceb..5908f01f1 100644 --- a/app/soapbox/actions/accounts.js +++ b/app/soapbox/actions/accounts.js @@ -132,7 +132,7 @@ export function fetchAccount(id) { const account = getState().getIn(['accounts', id]); - if (account && !account.get('dirty')) { + if (account && !account.get('should_refetch')) { return; } diff --git a/app/soapbox/reducers/accounts.js b/app/soapbox/reducers/accounts.js index 0ce12d28e..bb21547fc 100644 --- a/app/soapbox/reducers/accounts.js +++ b/app/soapbox/reducers/accounts.js @@ -145,7 +145,7 @@ const buildAccount = adminUser => fromJS({ actor_type: adminUser.get('actor_type'), }, }, - dirty: true, + should_refetch: true, }); const mergeAdminUser = (account, adminUser) => { @@ -157,7 +157,6 @@ const mergeAdminUser = (account, adminUser) => { account.setIn(['pleroma', 'is_admin'], adminUser.getIn(['roles', 'admin'])); account.setIn(['pleroma', 'is_moderator'], adminUser.getIn(['roles', 'moderator'])); account.setIn(['pleroma', 'is_confirmed'], adminUser.get('is_confirmed')); - account.set('dirty', true); }); };