Browse Source

Fix wrong error message when rss timeline is empty

Zed 6 years ago
parent
commit
2fe0d8daae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/routes/rss.nim

+ 1 - 1
src/routes/rss.nim

@@ -33,7 +33,7 @@ proc showRss*(req: Request; hostname: string; query: Query): Future[(string, str
   if profile.suspended:
     return (profile.username, "suspended")
 
-  if timeline.content.len > 0:
+  if profile.fullname.len > 0:
     let rss = renderTimelineRss(timeline, profile, hostname, multi=(names.len > 1))
     return (rss, timeline.bottom)