fix: cosmetic things to organization page
This commit is contained in:
parent
9c403260b7
commit
af08ef8a91
3 changed files with 52 additions and 6 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue