forked from DebaucheryLibrarian/traxxx
Showing avatar on release actor tile. Fixed social URL validation.
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user