feat: default accounts appear on homepage if not following an account
This commit is contained in:
@@ -65,6 +65,19 @@ proc renderHomepageTimeline*(results: Timeline; prefs: Prefs; path: string): VNo
|
||||
|
||||
renderTimelineTweets(results, prefs, path)
|
||||
|
||||
proc renderDefaultTimeline*(results: Timeline; prefs: Prefs; path: string): VNode =
|
||||
let query = results.query
|
||||
buildHtml(tdiv(class="timeline-container")):
|
||||
tdiv(class="timeline-header timeline-default"):
|
||||
h2(class="timeline-default-message"):
|
||||
text "Follow people to populate your "
|
||||
strong: text "own"
|
||||
text " feed"
|
||||
|
||||
renderHomepageTabs(query)
|
||||
|
||||
renderTimelineTweets(results, prefs, path)
|
||||
|
||||
proc renderUserSearch*(results: Result[User]; prefs: Prefs; path: string): VNode =
|
||||
buildHtml(tdiv(class="timeline-container")):
|
||||
renderSearchTabs(results.query)
|
||||
|
||||
Reference in New Issue
Block a user