aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-24 15:32:24 -0700
committerzotlabs <mike@macgirvin.com>2018-04-24 15:32:24 -0700
commit8face5a66c82e7086c379ca4b07f178a85a781b3 (patch)
treef617c210b1abb8bb8790c8a7aeb8c677d20d5f5d /view
parenta6c42e875633e8e67bbf93425182cce4de3eb653 (diff)
downloadvolse-hubzilla-8face5a66c82e7086c379ca4b07f178a85a781b3.tar.gz
volse-hubzilla-8face5a66c82e7086c379ca4b07f178a85a781b3.tar.bz2
volse-hubzilla-8face5a66c82e7086c379ca4b07f178a85a781b3.zip
make tag autocomplete less scary looking in the editor. If this works out we can simplify and get rid of a huge amount of spaghetti tag logic.
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) {