aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-07 23:20:40 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-07 23:20:40 +0200
commit27e9b5618b5a07ebc15fa6b6b0d1d2c78ade8f46 (patch)
tree9b26c2e3a28949f889d3f8c649dd3705ea9fb634
parent4d1f5c175283246f0fbf7c7c8a7312e66efded17 (diff)
downloadvolse-hubzilla-27e9b5618b5a07ebc15fa6b6b0d1d2c78ade8f46.tar.gz
volse-hubzilla-27e9b5618b5a07ebc15fa6b6b0d1d2c78ade8f46.tar.bz2
volse-hubzilla-27e9b5618b5a07ebc15fa6b6b0d1d2c78ade8f46.zip
use thread parent hash only for like and dislike activity. in all other cases use item hash. this will catch more situations.
-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 bc597364f..190ed3cc5 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_POST) ? $item_hash : $target_item['thr_parent']);
+ $mid = ((($target_item['verb'] == ACTIVITY_LIKE) || ($target_item['verb'] == ACTIVITY_DISLIKE)) ? $target_item['thr_parent'] : $item_hash);
//if we got a decoded hash we must encode it again before handing to javascript
if($decoded)