Rename 'dirty' to 'should_refetch'

This commit is contained in:
Alex Gleason 2021-07-13 18:35:37 -05:00
parent 2f6cd35f38
commit fa91defea0
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 3 deletions

View file

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

View file

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