From 18f7f64b47b8e9794adfb6cb57f8da579a387c76 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 12 Jul 2014 18:19:59 +0000 Subject: [PATCH] unescape reddit titles for all links --- modules/reddit/reddit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 537d82b..33ad8f7 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -260,7 +260,7 @@ var reddit = function(dbot) { this.api.getPostInfo(matches[4], function(info) { if(info) { var infoString = dbot.t('about_post', { - 'title': info.title.trim(), + 'title': _.unescape(info.title.trim()), 'poster': info.author, 'subreddit': info.subreddit, 'comments': info.num_comments, @@ -297,7 +297,7 @@ var reddit = function(dbot) { this.api.getPostInfo(match[2], function(info) { if(info) { var infoString = dbot.t('about_post', { - 'title': info.title.trim(), + 'title': _.unescape(info.title.trim()), 'poster': info.author, 'subreddit': info.subreddit, 'comments': info.num_comments,