1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-08 04:55:37 -05:00

Fix crash when generating RSS for invalid user

This commit is contained in:
Zed
2019-10-07 15:52:44 +02:00
parent 2955b8982e
commit 8fcdfa744a
2 changed files with 6 additions and 3 deletions

View File

@@ -10,7 +10,8 @@ include "../views/rss.nimf"
proc showRss*(name: string; query: Query): Future[string] {.async.} =
let (profile, timeline, _) = await fetchSingleTimeline(name, "", getAgent(), query)
return renderTimelineRss(timeline.content, profile)
if timeline != nil:
return renderTimelineRss(timeline, profile)
template respRss*(rss: typed) =
if rss.len == 0: