aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-08-04 12:42:35 +0200
committerMario Vavti <mario@mariovavti.com>2022-08-04 12:42:35 +0200
commit6eeb033b964dcc537515cd6a29f3f51555a8190a (patch)
treeb508466977a406b6639063282d06f45106a5260f
parent0679cb8e00daee2f3d863b5ec2ccb22163f2b955 (diff)
downloadvolse-hubzilla-6eeb033b964dcc537515cd6a29f3f51555a8190a.tar.gz
volse-hubzilla-6eeb033b964dcc537515cd6a29f3f51555a8190a.tar.bz2
volse-hubzilla-6eeb033b964dcc537515cd6a29f3f51555a8190a.zip
only decode attachment and iconfig for nonresponse activities
-rw-r--r--Zotlabs/Lib/Activity.php18
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)) {