forked from GitHub/dbot
unescape reddit titles for all links
This commit is contained in:
parent
427bb7c4b8
commit
18f7f64b47
@ -260,7 +260,7 @@ var reddit = function(dbot) {
|
|||||||
this.api.getPostInfo(matches[4], function(info) {
|
this.api.getPostInfo(matches[4], function(info) {
|
||||||
if(info) {
|
if(info) {
|
||||||
var infoString = dbot.t('about_post', {
|
var infoString = dbot.t('about_post', {
|
||||||
'title': info.title.trim(),
|
'title': _.unescape(info.title.trim()),
|
||||||
'poster': info.author,
|
'poster': info.author,
|
||||||
'subreddit': info.subreddit,
|
'subreddit': info.subreddit,
|
||||||
'comments': info.num_comments,
|
'comments': info.num_comments,
|
||||||
@ -297,7 +297,7 @@ var reddit = function(dbot) {
|
|||||||
this.api.getPostInfo(match[2], function(info) {
|
this.api.getPostInfo(match[2], function(info) {
|
||||||
if(info) {
|
if(info) {
|
||||||
var infoString = dbot.t('about_post', {
|
var infoString = dbot.t('about_post', {
|
||||||
'title': info.title.trim(),
|
'title': _.unescape(info.title.trim()),
|
||||||
'poster': info.author,
|
'poster': info.author,
|
||||||
'subreddit': info.subreddit,
|
'subreddit': info.subreddit,
|
||||||
'comments': info.num_comments,
|
'comments': info.num_comments,
|
||||||
|
Loading…
Reference in New Issue
Block a user