mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(EntityAssetService): include format during asset upload (#1177)
This commit is contained in:
1 parent
41ec2544cf
commit
097e10d651
1 file changed
+1
-1
@@ -139,7 +139,7 @@ export class EntityAssetService {
|
|||||||
const newHash = animated ? `a_${imageHashShort}` : imageHashShort;
|
const newHash = animated ? `a_${imageHashShort}` : imageHashShort;
|
||||||
const isAnimated = animated;
|
const isAnimated = animated;
|
||||||
const newS3Key = `${s3KeyBase}/${imageHashShort}`;
|
const newS3Key = `${s3KeyBase}/${imageHashShort}`;
|
||||||
const newCdnUrl = `${cdnUrlBase}/${newHash}`;
|
const newCdnUrl = `${cdnUrlBase}/${newHash}.${format}`;
|
||||||
if (newHash === previousHash) {
|
if (newHash === previousHash) {
|
||||||
return {
|
return {
|
||||||
newHash,
|
newHash,
|
||||||
|
|||||||
Reference in new issue
Block a user