Do not parse cards for images and videos
This commit is contained in:
parent
1e9d4bae83
commit
9129820cb0
1 changed files with 6 additions and 6 deletions
|
@ -86,12 +86,12 @@ proc createStatusRouter*(cfg: Config) =
|
|||
let gif = get(conv.tweet.gif)
|
||||
images = @[gif.thumb]
|
||||
video = getPicUrl(gif.url)
|
||||
elif conv.tweet.card.isSome():
|
||||
let card = conv.tweet.card.get()
|
||||
if card.image.len > 0:
|
||||
images = @[card.image]
|
||||
elif card.video.isSome():
|
||||
images = @[card.video.get().thumb]
|
||||
#elif conv.tweet.card.isSome():
|
||||
# let card = conv.tweet.card.get()
|
||||
# if card.image.len > 0:
|
||||
# images = @[card.image]
|
||||
# elif card.video.isSome():
|
||||
# images = @[card.video.get().thumb]
|
||||
|
||||
let html = renderConversation(conv, prefs, getPath() & "#m")
|
||||
resp renderMain(html, request, cfg, prefs, title, desc, ogTitle,
|
||||
|
|
Loading…
Reference in a new issue