diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-08-04 12:42:35 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-08-04 12:42:35 +0200 |
commit | 6eeb033b964dcc537515cd6a29f3f51555a8190a (patch) | |
tree | b508466977a406b6639063282d06f45106a5260f /Zotlabs | |
parent | 0679cb8e00daee2f3d863b5ec2ccb22163f2b955 (diff) | |
download | volse-hubzilla-6eeb033b964dcc537515cd6a29f3f51555a8190a.tar.gz volse-hubzilla-6eeb033b964dcc537515cd6a29f3f51555a8190a.tar.bz2 volse-hubzilla-6eeb033b964dcc537515cd6a29f3f51555a8190a.zip |
only decode attachment and iconfig for nonresponse activities
Diffstat (limited to 'Zotlabs')
-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)) { |