mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 23:25:35 +00:00
Fix hidePinned preference
This commit is contained in:
parent
f10519c41a
commit
8ecac89ea0
|
@ -86,7 +86,7 @@ proc showTimeline*(request: Request; query: Query; cfg: Config; prefs: Prefs;
|
||||||
html = renderTweetSearch(timeline, prefs, getPath())
|
html = renderTweetSearch(timeline, prefs, getPath())
|
||||||
return renderMain(html, request, cfg, prefs, "Multi", rss=rss)
|
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
|
template u: untyped = profile.user
|
||||||
|
|
||||||
if u.suspended:
|
if u.suspended:
|
||||||
|
|
|
@ -95,7 +95,7 @@ proc renderTimelineTweets*(results: Result[Tweet]; prefs: Prefs; path: string;
|
||||||
if not results.beginning:
|
if not results.beginning:
|
||||||
renderNewer(results.query, parseUri(path).path)
|
renderNewer(results.query, parseUri(path).path)
|
||||||
|
|
||||||
if pinned.isSome:
|
if not prefs.hidePins and pinned.isSome:
|
||||||
let tweet = get pinned
|
let tweet = get pinned
|
||||||
renderTweet(tweet, prefs, path, showThread=tweet.hasThread)
|
renderTweet(tweet, prefs, path, showThread=tweet.hasThread)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue