Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(EntityAssetService): include format during asset upload (#1177)

Solly097e10d65140
diff --git a/fluxer_api/src/api/infrastructure/EntityAssetService.ts b/fluxer_api/src/api/infrastructure/EntityAssetService.ts
index fb33f9dca..d7b6822c5 100644
--- a/fluxer_api/src/api/infrastructure/EntityAssetService.ts
+++ b/fluxer_api/src/api/infrastructure/EntityAssetService.ts
@@ -139,7 +139,7 @@ export class EntityAssetService {
const newHash = animated ? `a_${imageHashShort}` : imageHashShort;
const isAnimated = animated;
const newS3Key = `${s3KeyBase}/${imageHashShort}`;
- const newCdnUrl = `${cdnUrlBase}/${newHash}`;
+ const newCdnUrl = `${cdnUrlBase}/${newHash}.${format}`;
if (newHash === previousHash) {
return {
newHash,