mirror of https://gitgud.io/fatchan/jschan.git
Stert on setting for BO to prevent deleting old threads or ones with a lot of replies, ref #365
parent
024a47a286
commit
20db8154e7
8 changed files with 53 additions and 4 deletions
@ -0,0 +1,14 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db, redis) => { |
||||
console.log('Adding OP delete protection options to board settings'); |
||||
await db.collection('boards').updateMany({}, { |
||||
'$set': { |
||||
'settings.deleteProtectionAge': 0, |
||||
'settings.deleteProtectionCount': 0, |
||||
} |
||||
}); |
||||
console.log('Clearing boards cache'); |
||||
await redis.deletePattern('board:*'); |
||||
|
||||
}; |
Loading…
Reference in new issue