mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 02:56:29 +00:00
Linkify profile card website properly
This commit is contained in:
parent
9e890df482
commit
d8c8b6696a
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ proc parseTimelineProfile*(node: XmlNode): Profile =
|
|||
username: profile.getUsername(pre & "screenname"),
|
||||
joinDate: profile.getDate(pre & "joinDateText"),
|
||||
location: profile.selectText(pre & "locationText").stripText(),
|
||||
website: profile.selectText(pre & "url").stripText(),
|
||||
website: profile.selectAttr(pre & "urlText a", "title"),
|
||||
bio: profile.getBio(pre & "bio"),
|
||||
userpic: node.getAvatar(".profile-picture img"),
|
||||
verified: isVerified(profile),
|
||||
|
|
|
@ -35,7 +35,7 @@ proc renderProfileCard*(profile: Profile; prefs: Prefs): VNode =
|
|||
tdiv(class="profile-website"):
|
||||
span:
|
||||
icon "link"
|
||||
linkText(profile.website)
|
||||
verbatim linkifyText(profile.website, prefs)
|
||||
|
||||
tdiv(class="profile-joindate"):
|
||||
span(title=getJoinDateFull(profile)):
|
||||
|
|
Loading…
Reference in a new issue