mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-08-20 16:25:44 -05:00
feat: Stop showing who banned a user in the ban message
This commit is contained in:
@@ -8,6 +8,8 @@ const SettingsSchema = new Schema({
|
||||
default: 0
|
||||
},
|
||||
ban_lift_date: Date,
|
||||
// TODO: Move bans to their own collection. User settings should be scoped to older the user
|
||||
banned_by: Number,
|
||||
ban_reason: String,
|
||||
profile_comment: {
|
||||
type: String,
|
||||
|
||||
@@ -118,7 +118,8 @@ router.post('/accounts/:pid', async (req, res) => {
|
||||
await SETTINGS.findOneAndUpdate({ pid: pid }, {
|
||||
account_status: req.body.account_status,
|
||||
ban_lift_date: req.body.ban_lift_date,
|
||||
ban_reason: `${req.user.username} (${req.pid}): ${req.body.ban_reason}`
|
||||
banned_by: req.pid,
|
||||
ban_reason: req.body.ban_reason
|
||||
});
|
||||
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user