mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 09:35:38 +00:00
Skip rail request if profile is protected
This commit is contained in:
parent
5720bbb8f9
commit
2a40dd8059
|
@ -45,7 +45,7 @@ proc fetchSingleTimeline*(after: string; query: Query; skipRail=false):
|
||||||
return
|
return
|
||||||
|
|
||||||
var rail: Future[PhotoRail]
|
var rail: Future[PhotoRail]
|
||||||
if skipRail or query.kind == media:
|
if skipRail or profile.protected or query.kind == media:
|
||||||
rail = newFuture[PhotoRail]()
|
rail = newFuture[PhotoRail]()
|
||||||
rail.complete(@[])
|
rail.complete(@[])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue