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); }); };