Improved socials table.

This commit is contained in:
DebaucheryLibrarian
2024-11-04 02:37:45 +01:00
parent 5ae2f8e3f4
commit a487f21059
2 changed files with 21 additions and 10 deletions

View File

@@ -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],