1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-25 19:19:17 +01:00

Fix status page crash

This commit is contained in:
Zed 2019-09-09 06:38:25 +02:00
parent 2e58b7e197
commit 08239a3fae

View File

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