turn analytics off for self hosted
This commit is contained in:
parent
5ba94ff705
commit
da1b6692eb
|
@ -2,6 +2,6 @@ const env = require("../../environment")
|
||||||
|
|
||||||
exports.isEnabled = async function (ctx) {
|
exports.isEnabled = async function (ctx) {
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
enabled: env.ENABLE_ANALYTICS === "true",
|
enabled: !env.SELF_HOSTED && env.ENABLE_ANALYTICS === "true",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue