removed external link icon from signatures only

This commit is contained in:
psychobunny
2013-07-23 03:34:45 +08:00
parent 240683ed24
commit 1e86f379d5
3 changed files with 4 additions and 4 deletions

View File

@@ -138,7 +138,7 @@ var RDB = require('./redis.js'),
});
}
PostTools.markdownToHTML = function(md) {
PostTools.markdownToHTML = function(md, isSignature) {
var marked = require('marked'),
cheerio = require('cheerio');
@@ -156,7 +156,7 @@ var RDB = require('./redis.js'),
if (href && !href.match(domain)) {
this.attr('href', domain + 'outgoing?' + href);
this.append(' <i class="icon-external-link"></i>');
if (!isSignature) this.append(' <i class="icon-external-link"></i>');
}
});