diff --git a/src/lib/utils/guilded-media.ts b/src/lib/utils/guilded-media.ts index 18ed253..4e81728 100644 --- a/src/lib/utils/guilded-media.ts +++ b/src/lib/utils/guilded-media.ts @@ -1,5 +1,6 @@ export const guildedMediaLink = (awsUrl: string) => { // replace https://s3-us-west-2.amazonaws.com/www.guilded.gg with https://cdn.gilcdn.com // keep everything else same + if (!awsUrl) return awsUrl; return awsUrl.replace('https://s3-us-west-2.amazonaws.com/www.guilded.gg', 'https://cdn.gilcdn.com'); } \ No newline at end of file