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 New Issue