Added URL helper to q. Getting social links from Boobpedia.

This commit is contained in:
2020-01-23 23:32:51 +01:00
parent b30775faba
commit 6ef5c82c6a
3 changed files with 14 additions and 5 deletions

View File

@@ -177,6 +177,11 @@ function curateSocialEntry(url, actorId) {
pattern: 'http(s)\\://(*)modelhub.com/:username(/)(?*)',
format: username => `https://www.modelhub.com/${username}`,
},
{
label: 'imdb',
pattern: 'http(s)\\://(*)imdb.com/name/:userId(/)(?*)',
format: userId => `https://www.imdb.com/name/${userId}/`,
},
];
const match = platforms.reduce((acc, platform) => {