Finish refactor
This commit is contained in:
parent
0ae3d32dd7
commit
7693700ba3
@ -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',
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user