Fix wrong error message when rss timeline is empty

This commit is contained in:
Zed 2020-06-05 16:49:30 +02:00
parent 1fecd63d78
commit 2fe0d8daae
1 changed files with 1 additions and 1 deletions

View File

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