only decode attachment and iconfig for nonresponse activities

This commit is contained in:
Mario Vavti
2022-08-04 12:42:35 +02:00
parent 0679cb8e00
commit 6eeb033b96

View File

@@ -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)) {