aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
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 /Zotlabs/Lib/ThreadItem.php
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 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index f9565d339..d33f3c183 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -413,7 +413,7 @@ class ThreadItem {
'previewing' => ($conv->is_preview() ? true : false ),
'preview_lbl' => t('This is an unsaved preview'),
'wait' => t('Please wait'),
- 'submid' => str_replace(['+','='], ['',''], base64_encode(substr($item['mid'],0,32))),
+ 'submid' => str_replace(['+','='], ['',''], base64_encode($item['mid'])),
'thread_level' => $thread_level
);