mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
check repo status for github page
This commit is contained in:
1 parent
fbc7952d62
commit
0ea31b8c7f
1 file changed
+7
@@ -18,6 +18,13 @@ async function webView(req, res) {
|
|||||||
throw "page_not_activated";
|
throw "page_not_activated";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (repoConfig.status == "expired") {
|
||||||
|
throw "repository_expired";
|
||||||
|
}
|
||||||
|
if (repoConfig.status == "removed") {
|
||||||
|
throw "repository_expired";
|
||||||
|
}
|
||||||
|
|
||||||
if (repoConfig.options.pageSource.branch != repoConfig.branch) {
|
if (repoConfig.options.pageSource.branch != repoConfig.branch) {
|
||||||
throw "page_not_supported_on_different_branch";
|
throw "page_not_supported_on_different_branch";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user