diff --git a/pageUpdater.js b/pageUpdater.js index ba314da..7c48d53 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -167,13 +167,13 @@ module.exports = { } async function updateCommits() { - var siteResponse = await (await fetch(`https://github.com/Violets-puragtory/Violets-Purgatory.dev/tree/${process.env.BRANCH || "origin"}`)).text() + var siteResponse = await (await fetch(`https://git.violets-purgatory.dev/bingus_violet/violets-purgatory/src/branch/${process.env.BRANCH || "origin"}`)).text() var commits = siteResponse.substring(0, siteResponse.indexOf("Commits")) - // commits = commits.substring(commits.lastIndexOf("") + 3, commits.lastIndexOf("")) + commits = commits.substring(commits.lastIndexOf("") + 3, commits.lastIndexOf("")) // ^ this works for Forgejo (codeberg) - commits = commits.substring(commits.lastIndexOf(">") + 1) + // commits = commits.substring(commits.lastIndexOf(">") + 1) // ^ This works for Github (fuck you Github) commitCount = commits.toString()