Fixed socials order and prefix spacing.
This commit is contained in:
parent
4fba6ff71e
commit
cb759e7a09
|
@ -326,8 +326,7 @@
|
||||||
:class="`icon-social icon-${social.platform} icon-generic`"
|
:class="`icon-social icon-${social.platform} icon-generic`"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<template v-if="social.platform">{{ env.socials.prefix[social.platform] || env.socials.prefix.default }}</template>
|
<template v-if="social.platform">{{ env.socials.prefix[social.platform] || env.socials.prefix.default }}</template>{{ social.handle }}
|
||||||
{{ social.handle }}
|
|
||||||
</a>
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -55,7 +55,7 @@ const keyMap = {
|
||||||
isCircumcised: 'circumcised',
|
isCircumcised: 'circumcised',
|
||||||
};
|
};
|
||||||
|
|
||||||
const socialsOrder = ['onlyfans', 'twitter'];
|
const socialsOrder = ['onlyfans', 'twitter', null];
|
||||||
|
|
||||||
export function curateActor(actor, context = {}) {
|
export function curateActor(actor, context = {}) {
|
||||||
return {
|
return {
|
||||||
|
@ -121,7 +121,7 @@ export function curateActor(actor, context = {}) {
|
||||||
url: social.url,
|
url: social.url,
|
||||||
platform: social.platform,
|
platform: social.platform,
|
||||||
handle: social.handle,
|
handle: social.handle,
|
||||||
})).toSorted((socialA, socialB) => socialsOrder.indexOf(socialB.platform) - socialsOrder.indexOf(socialA.platform)),
|
})).toSorted((socialA, socialB) => socialsOrder.indexOf(socialA.platform) - socialsOrder.indexOf(socialB.platform)),
|
||||||
profiles: context.profiles?.map((profile) => ({
|
profiles: context.profiles?.map((profile) => ({
|
||||||
id: profile.id,
|
id: profile.id,
|
||||||
description: profile.description,
|
description: profile.description,
|
||||||
|
|
Loading…
Reference in New Issue