diff --git a/src/controllers/PublicController.ts b/src/controllers/PublicController.ts index 47a8fa4..4e44def 100644 --- a/src/controllers/PublicController.ts +++ b/src/controllers/PublicController.ts @@ -95,14 +95,10 @@ export default class PublicController { } else if (lastPublished === undefined || lastPublished === null) { return ErrorController.notFoundHandler()(req, res) } - if (!Utils.isStrUsable(version, 'cover.location')) { - version.cover.location = "https://fva-condorcet.s3.fr-par.scw.cloud/default-cover-plz-get-you-a-real-image.jpg" + version.cover = { location: "https://fva-condorcet.s3.fr-par.scw.cloud/default-cover-plz-get-you-a-real-image.jpg" } } - // if (lastPublished !== null) { - // lastPublished = lastPublished - // } let formatPhone = (phone: string) => { if (phone.indexOf('+33') === 0) { phone = '0' + phone.substr(3) @@ -136,7 +132,6 @@ export default class PublicController { return p }) } - if (Utils.isStrUsable(version.contacts, 'facebook')) { try { version.contacts.facebookLabel = new URL(version.contacts.facebook).pathname.replace('/', '')