fix: cosmetic things to organization page

This commit is contained in:
Matthieu Bessat 2020-08-04 13:05:56 +02:00
parent 9c403260b7
commit af08ef8a91
3 changed files with 52 additions and 6 deletions

View file

@ -131,6 +131,16 @@ export default class PublicController {
return p
})
}
if (Utils.isStrUsable(version.contacts, 'facebook')) {
version.contacts.facebookLabel = new URL(version.contacts.facebook).pathname.replace('/', '')
}
if (Utils.isStrUsable(version.contacts, 'twitter')) {
version.contacts.twitterLabel = new URL(version.contacts.twitter).pathname.replace('/', '')
}
if (Utils.isStrUsable(version.contacts, 'instagram')) {
version.contacts.instagramLabel = new URL(version.contacts.instagram).pathname.replace('/', '')
}
}
if (Array.isArray(version.gallery)) {
version.gallery = version.gallery.slice(0, 5).map((media: any) => {