Display profile bio in preview

This commit is contained in:
Zed 2019-10-11 18:43:47 +02:00
parent 1faf976d7c
commit 73cfc6979f
1 changed files with 4 additions and 1 deletions

View File

@ -54,6 +54,9 @@ proc pageTitle*(profile: Profile): string =
&"{profile.fullname} (@{profile.username})" &"{profile.fullname} (@{profile.username})"
proc pageDesc*(profile: Profile): string = proc pageDesc*(profile: Profile): string =
if profile.bio.len > 0:
stripHtml(profile.bio)
else:
"The latest tweets from " & profile.fullname "The latest tweets from " & profile.fullname
proc getJoinDate*(profile: Profile): string = proc getJoinDate*(profile: Profile): string =