Fix status page crash

このコミットが含まれているのは:
Zed 2019-09-09 06:38:25 +02:00
コミット 08239a3fae
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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)