aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
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
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')
-rw-r--r--Zotlabs/Module/Item.php8
-rw-r--r--Zotlabs/Module/Share.php4
2 files changed, 8 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++;
}
}
diff --git a/Zotlabs/Module/Share.php b/Zotlabs/Module/Share.php
index 5c4811c59..7f4d8b1eb 100644
--- a/Zotlabs/Module/Share.php
+++ b/Zotlabs/Module/Share.php
@@ -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();