diff --git a/includes/server/activities/like.php b/includes/server/activities/like.php index 8d0cf47..04abb37 100644 --- a/includes/server/activities/like.php +++ b/includes/server/activities/like.php @@ -28,7 +28,7 @@ function handle_outbox( $actor, $activity ) { return $res; } if ( \objects\is_local_object( $object ) ) { - $activity_id = \activities\get_activity_id( $activity['id'] ); + $activity_id = \objects\get_object_id( $activity['id'] ); if ( !$activity_id ) { return new \WP_Error( 'not_found', @@ -66,7 +66,7 @@ function handle_inbox( $actor, $activity ) { ); } if ( \objects\is_local_object( $object ) ) { - $activity_id = \activities\get_activity_id( $activity['id'] ); + $activity_id = \objects\get_object_id( $activity['id'] ); if ( !$activity_id ) { return new \WP_Error( 'not_found', diff --git a/includes/server/activities/undo.php b/includes/server/activities/undo.php index 4c21ba2..776e149 100644 --- a/includes/server/activities/undo.php +++ b/includes/server/activities/undo.php @@ -40,7 +40,7 @@ function handle_outbox( $actor_slug, $activity ) { break; } \likes\delete_local_actor_like( $actor_id, $liked_object_id ); - $like_id = \activities\get_activity_id( $object['id'] ); + $like_id = \objects\get_object_id( $object['id'] ); if ( !$like_id ) { break; } @@ -108,7 +108,7 @@ function handle_inbox( $actor_slug, $activity ) { break; } $object_id = \objects\get_object_id( $object_url ); - $like_id = \activities\get_activity_id( $object['id'] ); + $like_id = \objects\get_object_id( $object['id'] ); if ( !$like_id ) { break; }