1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

Fix crash on users with no bio

This commit is contained in:
Cadence Fish 2020-02-04 04:17:03 +13:00
parent a87617cea8
commit eacce79dc5
No known key found for this signature in database
GPG Key ID: 81015DF9AA8607E1

View File

@ -32,7 +32,9 @@ html
h1.full-name= `@${user.data.username}` h1.full-name= `@${user.data.username}`
if !user.fromReel if !user.fromReel
p.structured-text.bio p.structured-text.bio
+display_structured(user.getStructuredBio()) - const bio = user.getStructuredBio()
if bio
+display_structured(bio)
if user.data.external_url if user.data.external_url
p.website p.website
a(href=user.data.external_url)= user.data.external_url a(href=user.data.external_url)= user.data.external_url