From f74cfaec5f48ec37cc1f51e5381a45998ebc70e3 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 21 Nov 2020 10:22:23 +0000 Subject: fix pubstream id issue --- Zotlabs/Module/Like.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php index 538282c38..638ec6a78 100644 --- a/Zotlabs/Module/Like.php +++ b/Zotlabs/Module/Like.php @@ -387,6 +387,7 @@ class Like extends \Zotlabs\Web\Controller { $json = [ 'success' => 1, + 'orig_id' => $item_id, 'id' => $item['id'], 'html' => conversation($convitems,'network',true,'r_preview'), ]; @@ -534,8 +535,6 @@ class Like extends \Zotlabs\Web\Controller { $post = item_store($arr); $post_id = $post['item_id']; - //$item[] = $item; - $item_normal = item_normal(); $activities = q("SELECT item.*, item.id AS item_id FROM item WHERE uid = %d $item_normal @@ -555,6 +554,7 @@ class Like extends \Zotlabs\Web\Controller { $json = [ 'success' => 1, + 'orig_id' => $item_id, //this is required for pubstream where $item_id != $item['id'] 'id' => $item['id'], 'html' => conversation($convitems,'network',true,'r_preview'), ]; -- cgit v1.2.3