mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Minor code improvements
This commit is contained in:
parent
eed4d4033f
commit
d96550fcce
5 changed files with 17 additions and 12 deletions
|
|
@ -18,6 +18,7 @@ proc createStatusRouter*(cfg: Config) =
|
|||
cond '.' notin @"name"
|
||||
let prefs = cookiePrefs()
|
||||
|
||||
# used for the infinite scroll feature
|
||||
if @"scroll".len > 0:
|
||||
let replies = await getReplies(@"id", getCursor())
|
||||
if replies.content.len == 0:
|
||||
|
|
@ -34,10 +35,12 @@ proc createStatusRouter*(cfg: Config) =
|
|||
error = conv.tweet.tombstone
|
||||
resp Http404, showError(error, cfg)
|
||||
|
||||
var
|
||||
let
|
||||
title = pageTitle(conv.tweet)
|
||||
ogTitle = pageTitle(conv.tweet.profile)
|
||||
desc = conv.tweet.text
|
||||
|
||||
var
|
||||
images = conv.tweet.photos
|
||||
video = ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue