diff options
author | Minteck <contact@minteck.org> | 2022-05-06 08:44:02 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-05-06 08:44:02 +0200 |
commit | b83d267d0614380981452039626879021c2a4d68 (patch) | |
tree | ff71ab7dd440e9f899cc7500fa9585b71993e14b /includes/fetcher/index.js | |
parent | f64842e66a4b57c4ec624bea28faa46ccbf605cb (diff) | |
download | ember-b83d267d0614380981452039626879021c2a4d68.tar.gz ember-b83d267d0614380981452039626879021c2a4d68.tar.bz2 ember-b83d267d0614380981452039626879021c2a4d68.zip |
Fix HTTP resources on projects, attempt 3
Diffstat (limited to 'includes/fetcher/index.js')
-rw-r--r-- | includes/fetcher/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/fetcher/index.js b/includes/fetcher/index.js index 165053e..5ffc75e 100644 --- a/includes/fetcher/index.js +++ b/includes/fetcher/index.js @@ -33,7 +33,7 @@ issues: null, vcs: project.http_url_to_repo, web: project.web_url, - icon: project.avatar_url.replace("http://", "https://"), + icon: project.avatar_url ? project.avatar_url.replace("http://", "https://") : null, showcase: project.topics.includes("Showcase"), date: project.last_activity_at, event: (await axios.get(`https://gitlab.minteck.org/api/v4/projects/${project.id}/events`)).data[0], @@ -77,7 +77,7 @@ issues: null, vcs: project.http_url_to_repo, web: project.web_url, - icon: project.avatar_url.replace("http://", "https://"), + icon: project.avatar_url ? project.avatar_url.replace("http://", "https://") : null, showcase: project.topics.includes("Showcase"), date: project.last_activity_at, event: (await axios.get(`https://gitlab.minteck.org/api/v4/projects/${project.id}/events`)).data[0], |