kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Allow removing legacy 'donor' tag
rodzic
1f0b4d01b5
commit
25f0ff9d86
|
@ -404,6 +404,12 @@ const tagUsers = (accountIds: string[], tags: string[]) =>
|
|||
const untagUsers = (accountIds: string[], tags: string[]) =>
|
||||
(dispatch: AppDispatch, getState: () => RootState) => {
|
||||
const nicknames = nicknamesFromIds(getState, accountIds);
|
||||
|
||||
// Legacy: allow removing legacy 'donor' tags.
|
||||
if (tags.includes('badge:donor')) {
|
||||
tags = [...tags, 'donor'];
|
||||
}
|
||||
|
||||
dispatch({ type: ADMIN_USERS_UNTAG_REQUEST, accountIds, tags });
|
||||
return api(getState)
|
||||
.delete('/api/v1/pleroma/admin/users/tag', { data: { nicknames, tags } })
|
||||
|
|
Ładowanie…
Reference in New Issue