diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-11 08:49:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-11 08:49:50 +0900 |
| commit | be113e1c72a32145cc15cde37f6ec9447dc4496d (patch) | |
| tree | f7e56b63a364f7895bbe0d1af107623c35f7e347 /src/web/app/common/scripts | |
| parent | Merge pull request #149 from syuilo/greenkeeper/@types/mongodb-2.1.40 (diff) | |
| download | sharkey-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.js | 2 |
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': |