Only listing social links from known platforms in bio.

This commit is contained in:
2026-07-25 03:11:36 +02:00
parent b27c4811da
commit bf64a3d30e

View File

@@ -77,7 +77,10 @@ function getSocialUrl(social) {
return null;
}
const socials = props.actor.socials.slice(0, 10).map((social) => ({
const socials = props.actor.socials
.filter((social) => social.platform)
.slice(0, 10)
.map((social) => ({
...social,
handle: social.url
? new URL(social.url).hostname