From 7693700ba33ee32365bcc0a06967527eb4738cc3 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 9 Oct 2018 07:52:48 -0400 Subject: [PATCH] Finish refactor --- includes/server/activities/like.php | 4 ++-- includes/server/activities/undo.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }