Only listing social links from known platforms in bio.
This commit is contained in:
@@ -77,7 +77,10 @@ function getSocialUrl(social) {
|
|||||||
return null;
|
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,
|
...social,
|
||||||
handle: social.url
|
handle: social.url
|
||||||
? new URL(social.url).hostname
|
? new URL(social.url).hostname
|
||||||
|
|||||||
Reference in New Issue
Block a user