Compare commits
2 Commits
dc00c3d58a
...
4b90a5feec
| Author | SHA1 | Date |
|---|---|---|
|
|
4b90a5feec | |
|
|
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,
|
||||||
|
}];
|
||||||
|
}));
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx-utils",
|
"name": "traxxx-utils",
|
||||||
"version": "1.2.9",
|
"version": "1.2.10",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx-utils",
|
"name": "traxxx-utils",
|
||||||
"version": "1.2.9",
|
"version": "1.2.10",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.25.7",
|
"@babel/cli": "^7.25.7",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx-common",
|
"name": "traxxx-common",
|
||||||
"version": "1.2.9",
|
"version": "1.2.10",
|
||||||
"description": "Common utilities for traxxx core and web.",
|
"description": "Common utilities for traxxx core and web.",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue