aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-05 23:18:02 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-05 23:18:02 +0200
commit68a91ec3ea7eaf56689545535a7481a838eff4da (patch)
tree35f7537f9c957185966afb6d45df955c7d3995f8 /view/js
parentc8000fca1f2ee379b62b473a00838af9a48bc4b6 (diff)
downloadvolse-hubzilla-68a91ec3ea7eaf56689545535a7481a838eff4da.tar.gz
volse-hubzilla-68a91ec3ea7eaf56689545535a7481a838eff4da.tar.bz2
volse-hubzilla-68a91ec3ea7eaf56689545535a7481a838eff4da.zip
32 characters are often not enough to distinguish gnu-social mids - use the entire mid. in /display if we are not dealing with posts (eg likes) provide the thr_parent mid as bParam_mid so we can still adress the right post in javascript
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 3a4278630..ce7a1a07e 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -698,9 +698,9 @@ function updateConvItems(mode,data) {
// auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode
// use the same method to generate the submid as we use in ThreadItem,
- // substr(0,32) + base64_encode + replace(['+','='],['','']);
+ // base64_encode + replace(['+','='],['','']);
var submid = bParam_mid;
- var submid_encoded = ((submid.length) ? submid.substring(0,32) : 'abcdefg');
+ var submid_encoded = ((submid.length) ? submid : 'abcdefg');
submid_encoded = window.btoa(submid_encoded);
submid_encoded = submid_encoded.replace(/[\+\=]/g,'');
if($('.item_' + submid_encoded).length && !$('.item_' + submid_encoded).hasClass('toplevel_item') && mode == 'replace') {