Skip rail request if profile is protected
This commit is contained in:
parent
5720bbb8f9
commit
2a40dd8059
1 changed files with 1 additions and 1 deletions
|
@ -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