Delete rss3.io Statistics (#16387)

建议删除此统计功能,在此添加此功能降低了rsshub原有的鲁棒性,增加了风险点。
当前umami.rss3.io疑似处于宕机状态,在默认情况下安装的rsshub docker镜像会因此步无法执行而报错无法启动。
This commit is contained in:
tong
2024-08-07 01:48:06 +08:00
committed by GitHub
parent 3c77a007a0
commit 9407e44fba
-20
View File
@@ -719,26 +719,6 @@ calculateValue();
logger.error('Remote config load failed.', error);
}
}
if (!envs.DISABLE_UMAMI && envs.NODE_ENV === 'production') {
ofetch('https://umami.rss3.io/api/send', {
method: 'POST',
headers: {
'content-type': 'application/json',
'user-agent': TRUE_UA,
},
body: JSON.stringify({
payload: {
hostname: 'rsshub.app',
language: 'en-US',
referrer: 'rsshub.app',
url: 'rsshub.app',
website: '239067cd-231f-4a3f-a478-cced11a84876',
},
type: 'event',
}),
});
}
})();
// @ts-expect-error value is set