fix(github): allow empty notifications feed (#20875)
* fix(github): allow empty notifications feed * fix(github): set `allowEmpty` to be always true
This commit is contained in:
@@ -31,7 +31,7 @@ export const route: Route = {
|
||||
|
||||
async function handler(ctx) {
|
||||
if (!config.github || !config.github.access_token) {
|
||||
throw new ConfigNotFoundError('GitHub trending RSS is disabled due to the lack of <a href="https://docs.rsshub.app/deploy/config#route-specific-configurations">relevant config</a>');
|
||||
throw new ConfigNotFoundError('GitHub notification RSS is disabled due to the lack of <a href="https://docs.rsshub.app/deploy/config#route-specific-configurations">relevant config</a>');
|
||||
}
|
||||
const headers = {
|
||||
Accept: 'application/vnd.github.v3+json',
|
||||
@@ -74,5 +74,6 @@ async function handler(ctx) {
|
||||
title: 'Github Notifications',
|
||||
link: 'https://github.com/notifications',
|
||||
item: items,
|
||||
allowEmpty: true,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user