turned user tweets and likes stats into hyperlinks

This commit is contained in:
PrivacyDev 2023-06-14 17:34:15 -04:00
parent ced0599e89
commit 6bd21d6f0a
1 changed files with 4 additions and 2 deletions

View File

@ -58,12 +58,14 @@ proc renderUserCard*(user: User; prefs: Prefs): VNode =
tdiv(class="profile-card-extra-links"):
ul(class="profile-statlist"):
renderStat(user.tweets, "posts", text="Tweets")
a(href="/" & user.username):
renderStat(user.tweets, "posts", text="Tweets")
a(href="/" & user.username & "/following"):
renderStat(user.following, "following")
a(href="/" & user.username & "/followers"):
renderStat(user.followers, "followers")
renderStat(user.likes, "likes")
a(href="/" & user.username & "/favorites"):
renderStat(user.likes, "likes")
proc renderPhotoRail(profile: Profile): VNode =
let count = insertSep($profile.user.media, ',')