aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-01 06:34:27 +0000
committerMario <mario@mariovavti.com>2020-10-01 06:34:27 +0000
commit8605aee53378075956753f6b06487d8d8129df3e (patch)
treec6ebab4e83e5fc004dfe19cb39f87491d6eb4c42 /Zotlabs/Lib/Activity.php
parente4de9ef9034f8ce2c8d5f6693bf6a6ab50421fa7 (diff)
downloadvolse-hubzilla-8605aee53378075956753f6b06487d8d8129df3e.tar.gz
volse-hubzilla-8605aee53378075956753f6b06487d8d8129df3e.tar.bz2
volse-hubzilla-8605aee53378075956753f6b06487d8d8129df3e.zip
use object url
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 7ad6c91ae..ae52fa216 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -652,24 +652,7 @@ class Activity {
else
return [];
- if ($i['obj']) {
- if (! is_array($i['obj'])) {
- $i['obj'] = json_decode($i['obj'],true);
- }
- $obj = self::encode_object($i['obj']);
- if ($obj)
- $ret['object'] = $obj;
- else
- return [];
- }
- else {
- $obj = self::encode_item($i,$activitypub);
- if ($obj)
- $ret['object'] = $obj;
- else
- return [];
- }
-
+ $ret['object'] = str_replace('/item/','/activity/',$i['mid']);
$ret['to'] = [ ACTIVITY_PUBLIC_INBOX ];
return $ret;
}