Fix status page crash
This commit is contained in:
parent
2e58b7e197
commit
08239a3fae
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue