forked from DebaucheryLibrarian/traxxx
Improved socials table.
This commit is contained in:
@@ -709,7 +709,7 @@ async function associateSocials(profiles) {
|
||||
return;
|
||||
}
|
||||
|
||||
await knex('actors_social')
|
||||
await knex('actors_socials')
|
||||
.insert(profile.social.map((url) => ({
|
||||
url,
|
||||
platform: new URL(url).hostname.match(/([\w-]+)?\.(\w+)$/)?.[1],
|
||||
|
||||
Reference in New Issue
Block a user