Link profile location to search query if available

Fixes #60
This commit is contained in:
Zed
2019-10-08 23:25:59 +02:00
parent d8c8b6696a
commit 83a651e732
3 changed files with 15 additions and 2 deletions

View File

@@ -11,9 +11,9 @@ proc parseTimelineProfile*(node: XmlNode): Profile =
fullname: profile.getName(pre & "nameLink"),
username: profile.getUsername(pre & "screenname"),
joinDate: profile.getDate(pre & "joinDateText"),
location: profile.selectText(pre & "locationText").stripText(),
website: profile.selectAttr(pre & "urlText a", "title"),
bio: profile.getBio(pre & "bio"),
location: getLocation(profile),
userpic: node.getAvatar(".profile-picture img"),
verified: isVerified(profile),
protected: isProtected(profile),