1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-26 03:29:14 +01:00

Force showing sensitive card thumbnails

This commit is contained in:
Zed 2019-07-15 03:44:33 +02:00
parent d3a7ca834b
commit 829cac9cbd

View File

@ -174,8 +174,8 @@ proc getCard*(tweet: Tweet) {.async.} =
"Accept-Language": lang,
})
let url = base / get(tweet.card).query
let html = await fetchHtml(url, headers)
let query = get(tweet.card).query.replace("sensitive=true", "sensitive=false")
let html = await fetchHtml(base / query, headers)
if html == nil: return
parseCard(get(tweet.card), html)