Fix wrong error message when rss timeline is empty
This commit is contained in:
parent
1fecd63d78
commit
2fe0d8daae
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue