mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Make queries non-optional
This commit is contained in:
parent
53c6247d8b
commit
bd774cf0ca
10 changed files with 48 additions and 64 deletions
|
|
@ -83,9 +83,7 @@ proc renderProtected(username: string): VNode =
|
|||
|
||||
proc renderProfile*(profile: Profile; timeline: Timeline;
|
||||
photoRail: seq[GalleryPhoto]; prefs: Prefs; path: string): VNode =
|
||||
if timeline.query.isNone:
|
||||
timeline.query = some Query(fromUser: @[profile.username])
|
||||
|
||||
timeline.query.fromUser = @[profile.username]
|
||||
buildHtml(tdiv(class="profile-tabs")):
|
||||
if not prefs.hideBanner:
|
||||
tdiv(class="profile-banner"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue