Finish refactor

This commit is contained in:
Jeremy Dormitzer 2018-10-09 07:52:48 -04:00
parent 0ae3d32dd7
commit 7693700ba3
2 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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;
}