turn shares into activities - make certain to pull addons or JSON-LD will chuck a wobbly

This commit is contained in:
zotlabs
2018-02-13 20:07:57 -08:00
parent fd81a4bdc4
commit 64809dd277
3 changed files with 149 additions and 4 deletions

View File

@@ -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++;
}
}