mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Restrict image/gif media host instead of hashing
This commit is contained in:
parent
ec43987363
commit
9c91688497
7 changed files with 65 additions and 25 deletions
|
|
@ -32,7 +32,7 @@ proc linkUser*(profile: Profile, class=""): VNode =
|
|||
|
||||
proc genImg*(url: string; class=""): VNode =
|
||||
buildHtml():
|
||||
img(src=url.getSigUrl("pic"), class=class, alt="Image")
|
||||
img(src=getPicUrl(url), class=class, alt="Image")
|
||||
|
||||
proc linkText*(text: string; class=""): VNode =
|
||||
let url = if "http" notin text: "http://" & text else: text
|
||||
|
|
|
|||
Loading…
Reference in a new issue