Fix status page crash

This commit is contained in:
Zed 2019-09-09 06:38:25 +02:00
parent 2e58b7e197
commit 08239a3fae
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ proc createTimelineRouter*(cfg: Config) =
let conversation = await getTweet(@"name", @"id", getAgent()) let conversation = await getTweet(@"name", @"id", getAgent())
if conversation == nil or conversation.tweet.id.len == 0: 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) resp Http404, showError(conversation.tweet.tombstone, cfg.title)
else: else:
resp Http404, showError("Tweet not found", cfg.title) resp Http404, showError("Tweet not found", cfg.title)