summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-11 08:49:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-11 08:49:50 +0900
commitbe113e1c72a32145cc15cde37f6ec9447dc4496d (patch)
treef7e56b63a364f7895bbe0d1af107623c35f7e347 /src/web/app/common/scripts
parentMerge pull request #149 from syuilo/greenkeeper/@types/mongodb-2.1.40 (diff)
downloadsharkey-be113e1c72a32145cc15cde37f6ec9447dc4496d.tar.gz
sharkey-be113e1c72a32145cc15cde37f6ec9447dc4496d.tar.bz2
sharkey-be113e1c72a32145cc15cde37f6ec9447dc4496d.zip
#150
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/text-compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js
index 29b700e628..25f36382fb 100644
--- a/src/web/app/common/scripts/text-compiler.js
+++ b/src/web/app/common/scripts/text-compiler.js
@@ -27,7 +27,7 @@ module.exports = function(tokens, shouldBreak, shouldEscape) {
case 'link':
return '<mk-url href="' + escape(token.content) + '" target="_blank"></mk-url>';
case 'mention':
- return '<a href="' + CONFIG.url + '/' + escape(token.username) + '" target="_blank" data-user-preview="' + token.content + '">' + token.content + '</a>';
+ return '<a href="' + CONFIG.url + '/' + escape(token.username) + '" target="_blank" data-user-preview="' + token.content + '" ' + (me && me.username == token.username ? 'data-is-me' : '') + '>' + token.content + '</a>';
case 'hashtag': // TODO
return '<a>' + escape(token.content) + '</a>';
case 'code':