aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-25 09:57:28 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-25 09:57:28 +0200
commited785fbb1b4776a5d1fce382a307d9180c5f650a (patch)
treed99e436694048a2471824fa3ec27844e9a8c05c4 /view
parent0a51ea1bfa85d770f5dd2c7fd1428b785c17e125 (diff)
parent8face5a66c82e7086c379ca4b07f178a85a781b3 (diff)
downloadvolse-hubzilla-ed785fbb1b4776a5d1fce382a307d9180c5f650a.tar.gz
volse-hubzilla-ed785fbb1b4776a5d1fce382a307d9180c5f650a.tar.bz2
volse-hubzilla-ed785fbb1b4776a5d1fce382a307d9180c5f650a.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'view')
-rw-r--r--view/js/autocomplete.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index be632a07e..76c3fb69e 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -84,13 +84,8 @@ function editor_replace(item) {
}
// $2 ensures that prefix (@,@!) is preserved
- var id = item.id;
- // 16 chars of hash should be enough. Full hash could be used if it can be done in a visually appealing way.
- // 16 chars is also the minimum length in the backend (otherwise it's interpreted as a local id).
- if(id.length > 16)
- id = item.id.substring(0,16);
- return '$1$2' + item.nick.replace(' ', '') + '+' + id + ' ';
+ return '$1$2{' + item.link + '} ';
}
function basic_replace(item) {