diff options
-rw-r--r-- | Zotlabs/Lib/Activity.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 8e24dde41..7840e9999 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2417,7 +2417,7 @@ class Activity { $s['app'] = escape_tags($generator['name']); } - if (!$response_activity) { + if (is_array($act->obj) && !$response_activity) { $a = self::decode_taxonomy($act->obj); if ($a) { $s['term'] = $a; @@ -2429,16 +2429,16 @@ class Activity { } } } - } - $a = self::decode_attachment($act->obj); - if ($a) { - $s['attach'] = $a; - } + $a = self::decode_attachment($act->obj); + if ($a) { + $s['attach'] = $a; + } - $a = self::decode_iconfig($act->obj); - if ($a) { - $s['iconfig'] = $a; + $a = self::decode_iconfig($act->obj); + if ($a) { + $s['iconfig'] = $a; + } } if (array_key_exists('type', $act->obj)) { |