From 20b2ad2f7325e2bee55bc22191ba76568dbd0f67 Mon Sep 17 00:00:00 2001 From: Kristian Polso Date: Sat, 12 May 2018 21:20:34 +0300 Subject: [PATCH] Typo in repo urls --- .vuepress/components/GithubFeed.vue | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.vuepress/components/GithubFeed.vue b/.vuepress/components/GithubFeed.vue index ac8a36e..4c13017 100644 --- a/.vuepress/components/GithubFeed.vue +++ b/.vuepress/components/GithubFeed.vue @@ -98,10 +98,10 @@ export default { return event.payload.comment.html_url; break; case 'repo': - return 'https://github.com' + event.repo.name; + return 'https://github.com/' + event.repo.name; break; case 'forkee': - return 'https://github.com' + event.payload.forkee.full_name; + return 'https://github.com/' + event.payload.forkee.full_name; break; case 'issue': return event.payload.issue.html_url; @@ -118,17 +118,6 @@ export default { } - }, - rewriteGithubApiUrl (url) { - - url = url.replace('api.github.com', 'github.com'); - - var urlParts = url.split('/'); - - urlParts.push(urlParts.splice(4).join('/')); - - return urlParts[0] + '/' + urlParts[1] + '/' + urlParts[2] + '/' + urlParts[4]; - } } };