mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-16 13:06:29 +00:00
parent
ed79ed25a7
commit
8a11b5a167
2 changed files with 4 additions and 1 deletions
|
@ -70,6 +70,9 @@ proc getVideoEmbed*(cfg: Config; id: int64): string =
|
||||||
proc pageTitle*(profile: Profile): string =
|
proc pageTitle*(profile: Profile): string =
|
||||||
&"{profile.fullname} (@{profile.username})"
|
&"{profile.fullname} (@{profile.username})"
|
||||||
|
|
||||||
|
proc pageTitle*(tweet: Tweet): string =
|
||||||
|
&"{pageTitle(tweet.profile)}: \"{stripHtml(tweet.text)}\""
|
||||||
|
|
||||||
proc pageDesc*(profile: Profile): string =
|
proc pageDesc*(profile: Profile): string =
|
||||||
if profile.bio.len > 0:
|
if profile.bio.len > 0:
|
||||||
stripHtml(profile.bio)
|
stripHtml(profile.bio)
|
||||||
|
|
|
@ -25,7 +25,7 @@ proc createStatusRouter*(cfg: Config) =
|
||||||
resp Http404, showError(error, cfg)
|
resp Http404, showError(error, cfg)
|
||||||
|
|
||||||
var
|
var
|
||||||
title = pageTitle(conversation.tweet.profile)
|
title = pageTitle(conversation.tweet)
|
||||||
desc = conversation.tweet.text
|
desc = conversation.tweet.text
|
||||||
images = conversation.tweet.photos
|
images = conversation.tweet.photos
|
||||||
video = ""
|
video = ""
|
||||||
|
|
Loading…
Reference in a new issue