Showing avatar on release actor tile. Fixed social URL validation.

This commit is contained in:
2020-05-17 05:24:46 +02:00
parent 61965d480c
commit af5543190a
4 changed files with 90 additions and 95 deletions

View File

@@ -196,7 +196,7 @@ async function curateProfile(profile) {
curatedProfile.social = Array.isArray(profile.social)
? profile.social.map((social) => {
try {
const { href } = new URL();
const { href } = new URL(social);
return href;
} catch (error) {
logger.warn(`Profile scraper for '${profile.site.name}' returned invalid social link: ${social}`);