turn analytics off for self hosted

This commit is contained in:
Martin McKeaveney 2021-09-21 20:39:56 +01:00
parent 5ba94ff705
commit da1b6692eb
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",
} }
} }