From be6d8a1792af14a1deec1b977b49450e6403e756 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 10 Jul 2023 14:59:12 +0200 Subject: [PATCH] fix activity --- includes/activity/class-activity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/activity/class-activity.php b/includes/activity/class-activity.php index 37a469f..bd13cf8 100644 --- a/includes/activity/class-activity.php +++ b/includes/activity/class-activity.php @@ -196,8 +196,8 @@ class Activity extends Base_Object { $this->set( 'updated', $object->get_updated() ); } - if ( $object->attributed_to() && ! $this->get_actor() ) { - $this->set( 'actor', $object->attributed_to() ); + if ( $object->get_attributed_to() && ! $this->get_actor() ) { + $this->set( 'actor', $object->get_attributed_to() ); } if ( $object->get_id() && ! $this->get_id() ) {