Skip to content

Commit

Permalink
fixed event image
Browse files Browse the repository at this point in the history
  • Loading branch information
dada878 authored Dec 17, 2023
1 parent 5cf6e81 commit 502936e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fetch("https://api.scint.org/events")
for (const event of events) {
const description = event.description;
const start_time = new Date(event.scheduled_start_time);
const image_url = `https://cdn.discordapp.com/guild-events/1177270339693203516/${event.image}?size=2048`;
const image_url = `https://cdn.discordapp.com/guild-events/${event.id}/${event.image}?size=2048`;
const title = event.name;
const add_to_calendar_url = `https://www.google.com/calendar/render?action=TEMPLATE&text=${title.replace("#", "")}&dates=${start_time.toISOString().replace(/[-:]/g, "").replace(/\.\d\d\d/g, "")}/${start_time.toISOString().replace(/[-:]/g, "").replace(/\.\d\d\d/g, "")}&details=${description.replace("#", "")}&sf=true&output=xml`;
const event_card = htmlStringToElement(`
Expand All @@ -183,4 +183,4 @@ fetch("https://api.scint.org/events")
// fake logo
const fakeLogoWidth = 447;
const fakeLogoHeight = 78;
const fakeLogo = document.querySelector('.banner-image-fake');
const fakeLogo = document.querySelector('.banner-image-fake');

0 comments on commit 502936e

Please sign in to comment.