turn analytics off for self hosted

This commit is contained in:
Martin McKeaveney 2021-09-21 20:39:56 +01:00
parent 447f1b7d90
commit b7ff1a2464
1 changed files with 1 additions and 1 deletions

View File

@ -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",
} }
} }