mirror of https://gitgud.io/fatchan/jschan.git
close #265 global and board setting to disable .onion file posting
parent
b5f04b428e
commit
a2d34ac4af
7 changed files with 30 additions and 3 deletions
@ -0,0 +1,12 @@ |
|||||||
|
'use strict'; |
||||||
|
|
||||||
|
module.exports = async(db, redis) => { |
||||||
|
console.log('Adding disableOnionFilePosting setting'); |
||||||
|
await db.collection('boards').updateMany({}, { |
||||||
|
'$set': { |
||||||
|
'settings.disableOnionFilePosting': false, |
||||||
|
} |
||||||
|
}); |
||||||
|
console.log('Cleared boards cache'); |
||||||
|
await redis.deletePattern('board:*'); |
||||||
|
}; |
Loading…
Reference in new issue