unescape reddit titles for all links

This commit is contained in:
reality 2014-07-12 18:19:59 +00:00
parent 427bb7c4b8
commit 18f7f64b47

View File

@ -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,