mirror of https://gitgud.io/fatchan/jschan.git
rename some tor-specific stuff to "anonymizer" to be more general since i added lokinet to my site, will make easier to add others e.g. i2p in futuure
parent
0d15281538
commit
d75fb8cb0f
18 changed files with 52 additions and 33 deletions
@ -0,0 +1,12 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db, redis) => { |
||||
console.log('Renaming disable onion file posting to disable anonymizer file posting'); |
||||
await db.collection('boards').updateMany({}, { |
||||
'$rename': { |
||||
'settings.disableOnionFilePosting' : 'settings.disableAnonymizerFilePosting', |
||||
} |
||||
}); |
||||
console.log('Cleared boards cache'); |
||||
await redis.deletePattern('board:*'); |
||||
}; |
Loading…
Reference in new issue