turn shares into activities - make certain to pull addons or JSON-LD will chuck a wobbly
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user