mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 23:45:30 +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
|
||||
|
||||
var rail: Future[PhotoRail]
|
||||
if skipRail or query.kind == media:
|
||||
if skipRail or profile.protected or query.kind == media:
|
||||
rail = newFuture[PhotoRail]()
|
||||
rail.complete(@[])
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue