mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor: simplify account standing and verification levels (#3130)
This commit is contained in:
1 parent
1abde06824
commit
1ec8f31253
488 files changed
+10390
-47117
No files matched your search
@@ -31,6 +31,7 @@ import {ProfilePreview} from '@app/features/user/components/profile/ProfilePrevi
|
||||
import {type CustomStatus, normalizeCustomStatus} from '@app/features/user/state/CustomStatus';
|
||||
import UserSettings from '@app/features/user/state/UserSettings';
|
||||
import Users from '@app/features/user/state/Users';
|
||||
import {handleAccountLimitedError} from '@app/features/user/utils/AccountLimitUtils';
|
||||
import {getCurrentLocale} from '@app/features/user/utils/LocaleUtils';
|
||||
import {getDaysBetween} from '@fluxer/date_utils/src/DateComparison';
|
||||
import {getFormattedShortDate, getFormattedTime} from '@fluxer/date_utils/src/DateFormatting';
|
||||
@@ -233,6 +234,8 @@ export const CustomStatusModal = observer(() => {
|
||||
});
|
||||
await UserSettingsCommands.update({customStatus: statusToSave});
|
||||
ModalCommands.pop();
|
||||
} catch (error) {
|
||||
if (!handleAccountLimitedError(error)) throw error;
|
||||
} finally {
|
||||
setIsSaving(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user