feat: lacking config tips, close #2695

This commit is contained in:
DIYgod
2019-08-15 19:27:27 +08:00
parent 883ec30621
commit 6d4e517b0b
21 changed files with 85 additions and 56 deletions

View File

@@ -2,6 +2,9 @@ const got = require('@/utils/got');
const config = require('@/config');
module.exports = async (ctx) => {
if (!config.github || !config.github.access_token) {
throw 'GitHub follower RSS is disabled due to the lack of <a href="https://docs.rsshub.app/install/#%E9%83%A8%E5%88%86-rss-%E6%A8%A1%E5%9D%97%E9%85%8D%E7%BD%AE">relevant config</a>';
}
const user = ctx.params.user;
const host = `https://github.com/${user}`;