From 08239a3fae959f60d6ed855c53379fe0aed6667f Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 9 Sep 2019 06:38:25 +0200 Subject: [PATCH] Fix status page crash --- src/routes/timeline.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/timeline.nim b/src/routes/timeline.nim index 587b66e..f75e151 100644 --- a/src/routes/timeline.nim +++ b/src/routes/timeline.nim @@ -100,7 +100,7 @@ proc createTimelineRouter*(cfg: Config) = let conversation = await getTweet(@"name", @"id", getAgent()) if conversation == nil or conversation.tweet.id.len == 0: - if conversation.tweet.tombstone.len > 0: + if conversation != nil and conversation.tweet.tombstone.len > 0: resp Http404, showError(conversation.tweet.tombstone, cfg.title) else: resp Http404, showError("Tweet not found", cfg.title)