From 9ae25440f70d97ce33dc2b139b381a098f761349 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 13 Jun 2015 00:41:53 +0300 Subject: Image proxy is WORKING --- client/button.js | 3 +++ client/templates/photos.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/button.js b/client/button.js index 420224d..2fabf31 100644 --- a/client/button.js +++ b/client/button.js @@ -60,6 +60,9 @@ Template.photo.helpers({ date: function () { var d = new Date(parseInt(this.created_time) * 1000); return d.getDate() + '/' + (d.getMonth() + 1) + '/' + d.getFullYear(); + }, + proxy: function (url) { + return url.replace('https://scontent.cdninstagram.com', '/imgproxy?url=') } }) diff --git a/client/templates/photos.html b/client/templates/photos.html index c87b225..41873bc 100644 --- a/client/templates/photos.html +++ b/client/templates/photos.html @@ -14,7 +14,7 @@ -- cgit v1.3.1