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:
Pilgrim Lyieu
2026-01-13 23:07:20 +08:00
committed by GitHub
parent fc5d340761
commit 0e48234e14
+2 -1
View File
@@ -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,
};
}