mirror of https://github.com/zedeus/nitter
notes: proxy small images
This commit is contained in:
parent
12788ac65f
commit
d8ddb29998
|
@ -64,12 +64,12 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article):
|
|||
result.add link
|
||||
of ArticleEntityType.media:
|
||||
for id in entity.mediaIds:
|
||||
let url: string = article.media[id]
|
||||
let url: string = article.media[id].getSmallPic
|
||||
let image = buildHtml(span(class="image")):
|
||||
img(src=url, alt="")
|
||||
result.add image
|
||||
of ArticleEntityType.twemoji:
|
||||
let url = entity.twemoji
|
||||
let url = entity.twemoji.getSmallPic
|
||||
let emoji = buildHtml(img(src=url, alt=""))
|
||||
result.add emoji
|
||||
of ArticleEntityType.tweet:
|
||||
|
|
Loading…
Reference in New Issue