aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-12-03 20:09:57 -0800
committerzotlabs <mike@macgirvin.com>2018-12-03 20:09:57 -0800
commit42aeb19562b9e72436a72e090772da669e34fd66 (patch)
treebd093718181c69fbb6f6f383c36548b60b23c262 /Zotlabs/Module/Like.php
parentffc3dba6825933d8e3ddc1a9a1ee93785acb2fca (diff)
downloadvolse-hubzilla-42aeb19562b9e72436a72e090772da669e34fd66.tar.gz
volse-hubzilla-42aeb19562b9e72436a72e090772da669e34fd66.tar.bz2
volse-hubzilla-42aeb19562b9e72436a72e090772da669e34fd66.zip
partial solution for obj|tgt multiple (zot and zot6) encodings; the zot6 version will be stored under $item['obj']['asld']
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index c39726b88..d19154eb4 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -1,6 +1,8 @@
<?php
namespace Zotlabs\Module;
+use Zotlabs\Lib\Activity;
+
require_once('include/security.php');
require_once('include/bbcode.php');
require_once('include/items.php');
@@ -400,6 +402,7 @@ class Like extends \Zotlabs\Web\Controller {
$object = json_encode(array(
'type' => $objtype,
'id' => $item['mid'],
+ 'asld' => Activity::fetch_item( [ 'id' => $item['mid'] ] ),
'parent' => (($item['thr_parent']) ? $item['thr_parent'] : $item['parent_mid']),
'link' => $links,
'title' => $item['title'],