sort modactions alphabetically

master
Aevann 2023-03-12 12:25:03 +02:00
parent eb2659aac8
commit 6bef780e6c
2 changed files with 4 additions and 0 deletions

View File

@ -403,6 +403,8 @@ MODACTION_TYPES = {
},
}
MODACTION_TYPES = dict(sorted(MODACTION_TYPES.items()))
MODACTION_PRIVILEGED_TYPES = {'shadowban', 'unshadowban',
'mod_mute_user', 'mod_unmute_user',
'link_accounts', 'delink_accounts',

View File

@ -115,3 +115,5 @@ SUBACTION_TYPES = {
"color": 'bg-success'
},
}
SUBACTION_TYPES = dict(sorted(SUBACTION_TYPES.items()))