mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
Remove onlyfans (2)...
This commit is contained in:
@@ -5,7 +5,7 @@ export const SITE_ORDER = [
|
||||
'bluesky',
|
||||
'mastodon',
|
||||
'substack',
|
||||
'onlyfans',
|
||||
// 'onlyfans',
|
||||
'instagram',
|
||||
'github',
|
||||
'linkedin',
|
||||
@@ -39,8 +39,8 @@ const stripper: { [key in Site]: (input: string) => string } = {
|
||||
s
|
||||
.replace(/^(https?:\/\/)?(www\.)?(\w+\.)?substack\.com\//, '')
|
||||
.replace(/\/$/, ''),
|
||||
onlyfans: (s) =>
|
||||
s.replace(/^(https?:\/\/)?(www\.)?onlyfans\.com\//, '').replace(/\/$/, ''),
|
||||
// onlyfans: (s) =>
|
||||
// s.replace(/^(https?:\/\/)?(www\.)?onlyfans\.com\//, '').replace(/\/$/, ''),
|
||||
instagram: (s) =>
|
||||
s
|
||||
.replace(/^(https?:\/\/)?(www\.)?instagram\.com\//, '')
|
||||
@@ -77,7 +77,7 @@ const urler: { [key in Site]: (handle: string) => string } = {
|
||||
mastodon: (s) =>
|
||||
s.includes('@') ? `https://${s.split('@')[1]}/@${s.split('@')[0]}` : s,
|
||||
substack: (s) => `https://${s}.substack.com`,
|
||||
onlyfans: (s) => `https://onlyfans.com/${s}`,
|
||||
// onlyfans: (s) => `https://onlyfans.com/${s}`,
|
||||
instagram: (s) => `https://instagram.com/${s}`,
|
||||
github: (s) => `https://github.com/${s}`,
|
||||
linkedin: (s) => `https://linkedin.com/in/${s}`,
|
||||
@@ -92,7 +92,7 @@ export const PLATFORM_LABELS: { [key in Site]: string } = {
|
||||
bluesky: 'Bluesky',
|
||||
mastodon: 'Mastodon',
|
||||
substack: 'Substack',
|
||||
onlyfans: 'OnlyFans',
|
||||
// onlyfans: 'OnlyFans',
|
||||
instagram: 'Instagram',
|
||||
github: 'GitHub',
|
||||
linkedin: 'LinkedIn',
|
||||
|
||||
Reference in New Issue
Block a user