aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
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) {