Skip to content

Commit 38f193e

Browse files
committed
fix: Add undo option for force name change in moderation log
- Introduced a new entry in the moderation log schema for 'undo_force_name_change', enabling tracking of the action to revert a forced name change. - This addition enhances the moderation capabilities by providing a clear record of undo actions related to name changes.
1 parent 721fd4a commit 38f193e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/ModerationLog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const moderationLogSchema = new mongoose.Schema({
3333
'ban_temporary', // Temporary ban with duration
3434
'unban', // Lifted a ban
3535
'force_name_change', // Force user to change name
36+
'undo_force_name_change', // Undo a force name change
3637
'name_change_approved', // Approved a pending name change
3738
'name_change_rejected', // Rejected a pending name change
3839
'name_change_manual', // User-initiated name change (voluntary)

0 commit comments

Comments
 (0)