Added socials config.
This commit is contained in:
parent
dc00c3d58a
commit
b9ee4e1c90
30
actors.mjs
30
actors.mjs
|
|
@ -222,3 +222,33 @@ export async function interpolateProfiles(actorIdsOrNames, context, options = {}
|
||||||
await context.knex.schema.refreshMaterializedView('actors_meta');
|
await context.knex.schema.refreshMaterializedView('actors_meta');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const socials = {
|
||||||
|
urls: {
|
||||||
|
cashapp: 'https://cash.app/${handle}', // eslint-disable-line no-template-curly-in-string
|
||||||
|
fansly: 'https://fansly.com/{handle}',
|
||||||
|
instagram: 'https://www.instagram.com/{handle}',
|
||||||
|
linktree: 'https://linktr.ee/{handle}',
|
||||||
|
loyalfans: 'https://www.loyalfans.com/{handle}',
|
||||||
|
manyvids: 'https://{handle}.manyvids.com',
|
||||||
|
onlyfans: 'https://onlyfans.com/{handle}',
|
||||||
|
pornhub: 'https://www.pornhub.com/model/{handle}',
|
||||||
|
reddit: 'https://www.reddit.com/u/{handle}',
|
||||||
|
twitter: 'https://x.com/{handle}',
|
||||||
|
},
|
||||||
|
prefix: {
|
||||||
|
default: '@',
|
||||||
|
cashapp: '$',
|
||||||
|
reddit: 'u/',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const platformsByHostname = Object.fromEntries(Object.entries(socials.urls).map(([platform, url]) => {
|
||||||
|
const { hostname, pathname } = new URL(url);
|
||||||
|
|
||||||
|
return [hostname, {
|
||||||
|
platform,
|
||||||
|
pathname: decodeURIComponent(pathname),
|
||||||
|
url,
|
||||||
|
}];
|
||||||
|
}));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue