mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:35:14 +00:00
use thread parent hash only for like and dislike activity. in all other cases use item hash. this will catch more situations.
This commit is contained in:
parent
4d1f5c1752
commit
27e9b5618b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue