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