Fix hidePinned preference

This commit is contained in:
Zed 2022-01-30 16:58:20 +01:00
parent f10519c41a
commit 8ecac89ea0
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ proc showTimeline*(request: Request; query: Query; cfg: Config; prefs: Prefs;
html = renderTweetSearch(timeline, prefs, getPath())
return renderMain(html, request, cfg, prefs, "Multi", rss=rss)
var profile = await fetchProfile(after, query)
var profile = await fetchProfile(after, query, skipPinned=prefs.hidePins)
template u: untyped = profile.user
if u.suspended:

View File

@ -95,7 +95,7 @@ proc renderTimelineTweets*(results: Result[Tweet]; prefs: Prefs; path: string;
if not results.beginning:
renderNewer(results.query, parseUri(path).path)
if pinned.isSome:
if not prefs.hidePins and pinned.isSome:
let tweet = get pinned
renderTweet(tweet, prefs, path, showThread=tweet.hasThread)