aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-07 23:35:36 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-07 23:35:36 +0200
commit7b3aa92b5ad09c0820db2b20bc462c975f0d3aba (patch)
treea15d60b9150c477d2bd6fb97eff741a4a282680e /Zotlabs/Module/Display.php
parent27e9b5618b5a07ebc15fa6b6b0d1d2c78ade8f46 (diff)
downloadvolse-hubzilla-7b3aa92b5ad09c0820db2b20bc462c975f0d3aba.tar.gz
volse-hubzilla-7b3aa92b5ad09c0820db2b20bc462c975f0d3aba.tar.bz2
volse-hubzilla-7b3aa92b5ad09c0820db2b20bc462c975f0d3aba.zip
use $target_item[mid] to make item highlighting work with shortened mids
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 190ed3cc5..0ea55102e 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -135,7 +135,7 @@ class Display extends \Zotlabs\Web\Controller {
$static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1);
//if the target item is not a post (eg a like) we want to address its thread parent
- $mid = ((($target_item['verb'] == ACTIVITY_LIKE) || ($target_item['verb'] == ACTIVITY_DISLIKE)) ? $target_item['thr_parent'] : $item_hash);
+ $mid = ((($target_item['verb'] == ACTIVITY_LIKE) || ($target_item['verb'] == ACTIVITY_DISLIKE)) ? $target_item['thr_parent'] : $target_item['mid']);
//if we got a decoded hash we must encode it again before handing to javascript
if($decoded)