Browse Source

Skip rail request if profile is protected

Zed 4 năm trước cách đây
mục cha
commit
2a40dd8059
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/routes/timeline.nim

+ 1 - 1
src/routes/timeline.nim

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