Compare commits

..

No commits in common. "4b90a5feeccc0c6325469dcb45a8d7cceabb386a" and "dc00c3d58af2c23530b8b3cb6704f3860fdd7d0f" have entirely different histories.

3 changed files with 3 additions and 33 deletions

View File

@ -222,33 +222,3 @@ export async function interpolateProfiles(actorIdsOrNames, context, options = {}
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,
}];
}));

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx-utils",
"version": "1.2.10",
"version": "1.2.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx-utils",
"version": "1.2.10",
"version": "1.2.9",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.25.7",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx-common",
"version": "1.2.10",
"version": "1.2.9",
"description": "Common utilities for traxxx core and web.",
"main": "src/app.js",
"scripts": {