Skip rail request if profile is protected

This commit is contained in:
Zed 2021-12-26 05:02:57 +01:00
parent 5720bbb8f9
commit 2a40dd8059
1 changed files with 1 additions and 1 deletions

View File

@ -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: