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++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,10 @@ class Share extends \Zotlabs\Web\Controller {
|
||||
if(! $post_id)
|
||||
killme();
|
||||
|
||||
|
||||
echo '[share=' . $post_id . '][/share]';
|
||||
killme();
|
||||
|
||||
if(! (local_channel() || remote_channel()))
|
||||
killme();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user