From 3ea9fb8c68611b3eaeab68ff49f3ac9cf025664b Mon Sep 17 00:00:00 2001 From: thoso Date: Thu, 20 Feb 2014 20:50:12 +0100 Subject: [PATCH] 500px crappy photo fix --- modules/500px/500px.js | 6 +++--- modules/500px/strings.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/500px/500px.js b/modules/500px/500px.js index 89e61ca..dcfc436 100644 --- a/modules/500px/500px.js +++ b/modules/500px/500px.js @@ -30,9 +30,9 @@ var foo = function(dbot) { //name of module event.reply(dbot.t('error')); } else { // getting photo name and url from results json http://is.gd/hALYmR - var name=results.photos[random].name, - url=results.photos[random].image_url; - event.reply(dbot.t('result',{'name':name,'url'=url})); + var 500px_name=results.photos[random].name, + 500px_id=results.photos[random].id; + event.reply(dbot.t('result',{'name':500px_name,'id'=500px_id})); } }); diff --git a/modules/500px/strings.json b/modules/500px/strings.json index b0a684d..16cea03 100644 --- a/modules/500px/strings.json +++ b/modules/500px/strings.json @@ -1,6 +1,6 @@ { "result":{ - "en": "{name} - {url}" + "en": "{name} - http://500px.com/photo/{id}" }, "error": { "en": "Something went wrong :( Example:'~r500px'"