fix(route): github comments use api (#9358)

fix(route): github comments use api
This commit is contained in:
Tony
2022-03-21 17:17:59 +00:00
committed by GitHub
parent 6b3d21438e
commit fe775f5198
10 changed files with 107 additions and 48 deletions

View File

@@ -3,7 +3,7 @@ const config = require('@/config').value;
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>';
throw 'GitHub follower RSS is disabled due to the lack of <a href="https://docs.rsshub.app/install/#pei-zhi-bu-fen-rss-mo-kuai-pei-zhi">relevant config</a>';
}
const user = ctx.params.user;