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:
parent
2e58b7e197
commit
08239a3fae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user