mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 10:05:32 +00:00
Force showing sensitive card thumbnails
This commit is contained in:
parent
d3a7ca834b
commit
829cac9cbd
|
@ -174,8 +174,8 @@ proc getCard*(tweet: Tweet) {.async.} =
|
||||||
"Accept-Language": lang,
|
"Accept-Language": lang,
|
||||||
})
|
})
|
||||||
|
|
||||||
let url = base / get(tweet.card).query
|
let query = get(tweet.card).query.replace("sensitive=true", "sensitive=false")
|
||||||
let html = await fetchHtml(url, headers)
|
let html = await fetchHtml(base / query, headers)
|
||||||
if html == nil: return
|
if html == nil: return
|
||||||
|
|
||||||
parseCard(get(tweet.card), html)
|
parseCard(get(tweet.card), html)
|
||||||
|
|
Loading…
Reference in a new issue