lib/jschat/http/public/javascripts/app/helpers/text_helper.js in jschat-0.3.3 vs lib/jschat/http/public/javascripts/app/helpers/text_helper.js in jschat-0.3.5
- old
+ new
@@ -76,9 +76,11 @@
result += link.replace(link, LinkHelper.youtube(link));
} else if (LinkHelper.vimeo_url(link) && !JsChat.user.hideImages) {
result += link.replace(link, LinkHelper.vimeo(link));
} else if (LinkHelper.image_url(link) && !JsChat.user.hideImages) {
result += link.replace(link, LinkHelper.image(link));
+ } else if (LinkHelper.twitpic_url(link) && !JsChat.user.hideImages) {
+ result += link.replace(link, LinkHelper.twitpic(link));
} else if (LinkHelper.url(link)) {
result += link.replace(link, LinkHelper.link(link));
} else {
result += link;
}