aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-13 20:07:57 -0800
committerzotlabs <mike@macgirvin.com>2018-02-13 20:07:57 -0800
commit64809dd2777ae0064addaff765450cf3f05c3bc4 (patch)
tree9e16dddf60feaaf58f5220950e43bbb6cc4e5c64 /Zotlabs/Module/Item.php
parentfd81a4bdc4f1c80d9dd73358452f50bc6422afef (diff)
downloadvolse-hubzilla-64809dd2777ae0064addaff765450cf3f05c3bc4.tar.gz
volse-hubzilla-64809dd2777ae0064addaff765450cf3f05c3bc4.tar.bz2
volse-hubzilla-64809dd2777ae0064addaff765450cf3f05c3bc4.zip
turn shares into activities - make certain to pull addons or JSON-LD will chuck a wobbly
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r--Zotlabs/Module/Item.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 73730bc99..3f857030b 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -628,10 +628,10 @@ class Item extends \Zotlabs\Web\Controller {
$verb = ACTIVITY_SHARE;
$i = 0;
foreach($match[2] as $mtch) {
-// $obj = get_share_activity($mtch);
- $datarray['obj'] = $obj['obj'];
- $datarray['obj_type'] = $obj['obj']['type'];
- $body = str_replace($match[1][$i],$obj['body'],$body);
+ $reshare = new \Zotlabs\Lib\Share($mtch);
+ $datarray['obj'] = $reshare->obj();
+ $datarray['obj_type'] = $datarray['obj']['type'];
+ $body = str_replace($match[1][$i],$reshare->bbcode(),$body);
$i++;
}
}