1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

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

View file

@ -2,6 +2,6 @@ const env = require("../../environment")
exports.isEnabled = async function (ctx) {
ctx.body = {
enabled: env.ENABLE_ANALYTICS === "true",
enabled: !env.SELF_HOSTED && env.ENABLE_ANALYTICS === "true",
}
}