Added socials config.

This commit is contained in:
DebaucheryLibrarian 2025-12-28 05:37:21 +01:00
parent dc00c3d58a
commit b9ee4e1c90
1 changed files with 30 additions and 0 deletions

View File

@ -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,
}];
}));