From bf64a3d30e8e6498c1aac0a11b8e80db538fd011 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 25 Jul 2026 03:11:36 +0200 Subject: [PATCH] Only listing social links from known platforms in bio. --- components/actors/bio.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/components/actors/bio.vue b/components/actors/bio.vue index f3052fc..d7e177b 100644 --- a/components/actors/bio.vue +++ b/components/actors/bio.vue @@ -77,12 +77,15 @@ function getSocialUrl(social) { return null; } -const socials = props.actor.socials.slice(0, 10).map((social) => ({ - ...social, - handle: social.url - ? new URL(social.url).hostname - : social.handle, -})); +const socials = props.actor.socials + .filter((social) => social.platform) + .slice(0, 10) + .map((social) => ({ + ...social, + handle: social.url + ? new URL(social.url).hostname + : social.handle, + })); const aliases = Object .entries(props.actor.aliases.reduce((acc, alias) => {