aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-04-03 11:57:25 +0000
committerMario <mario@mariovavti.com>2025-04-03 11:57:25 +0000
commitde3f491966315f36334c7b175ef74575943106fd (patch)
treef3a2439578a69857fdb37ee97c05342bbbb160f9 /Zotlabs
parent322a021765e7371cdb6f00834fd8607e6b15209b (diff)
downloadvolse-hubzilla-de3f491966315f36334c7b175ef74575943106fd.tar.gz
volse-hubzilla-de3f491966315f36334c7b175ef74575943106fd.tar.bz2
volse-hubzilla-de3f491966315f36334c7b175ef74575943106fd.zip
make sure object actor is an array if we are going to use it
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 204c024ca..654f8ecc9 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2213,9 +2213,9 @@ class Activity {
$s['edited'] = datetime_convert('UTC', 'UTC', $act->data['updated']);
}
- $obj_actor = $act->objprop('actor') ?: $act->get_actor('attributedTo', $act->obj);
+ $obj_actor = is_array($act->objprop('actor')) ? $act->objprop('actor') : $act->get_actor('attributedTo', $act->obj);
- if (!isset($obj_actor['id'])) {
+ if (empty($obj_actor['id'])) {
return false;
}
@@ -2252,6 +2252,7 @@ class Activity {
}
if (in_array($act->type, ['EmojiReact'])) {
+
// Pleroma reactions
$t = trim(self::get_textfield($act->data, 'content'));