aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-21 10:22:23 +0000
committerMario <mario@mariovavti.com>2020-11-21 10:22:23 +0000
commitf74cfaec5f48ec37cc1f51e5381a45998ebc70e3 (patch)
treebeddb41230348bb597a6312e1a609848014a8c2b /Zotlabs/Module
parentd559b4a2017e58c1dd24684c329327e935452e64 (diff)
downloadvolse-hubzilla-f74cfaec5f48ec37cc1f51e5381a45998ebc70e3.tar.gz
volse-hubzilla-f74cfaec5f48ec37cc1f51e5381a45998ebc70e3.tar.bz2
volse-hubzilla-f74cfaec5f48ec37cc1f51e5381a45998ebc70e3.zip
fix pubstream id issue
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Like.php4
1 files changed, 2 insertions, 2 deletions
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'),
];