aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 0f9160bf7..aa121d98b 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -299,7 +299,13 @@ class Activity {
if ($items) {
$x = [];
foreach ($items as $i) {
- $t = ((get_iconfig($i['id'], 'activitypub', 'rawmsg')) ? get_iconfig($i['id'], 'activitypub', 'rawmsg') : self::encode_activity($i));
+ $m = get_iconfig($i['id'], 'activitypub', 'rawmsg');
+ if (is_string($m)) {
+ $t = json_decode($m, true);
+ }
+ else {
+ $t = $m;
+ }
if ($t) {
$x[] = $t;
}