mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
initialize cache path
This commit is contained in:
parent
3b6e2fa9e2
commit
8ff7e45c9b
@ -84,6 +84,12 @@ export default class API {
|
|||||||
|
|
||||||
global.uploadCachePath = process.env.uploadCachePath ?? path.resolve(process.cwd(), "cache")
|
global.uploadCachePath = process.env.uploadCachePath ?? path.resolve(process.cwd(), "cache")
|
||||||
|
|
||||||
|
if (!fs.existSync(global.uploadCachePath)) {
|
||||||
|
fs.mkdirSync(global.uploadCachePath, {
|
||||||
|
recursive: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
global.DEFAULT_POSTING_POLICY = {
|
global.DEFAULT_POSTING_POLICY = {
|
||||||
maxMessageLength: 512,
|
maxMessageLength: 512,
|
||||||
acceptedMimeTypes: [
|
acceptedMimeTypes: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user