Skip to content

Commit

Permalink
fix callback issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Oct 9, 2024
1 parent ef66677 commit 53e176e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/rest/class-inbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Activitypub\Collection\Users as User_Collection;

use function Activitypub\get_context;
use function Activitypub\object_to_uri;
use function Activitypub\url_to_authorid;
use function Activitypub\get_rest_url_by_path;
use function Activitypub\get_masked_wp_version;
Expand Down Expand Up @@ -244,7 +243,7 @@ public static function user_inbox_post_parameters() {

$params['actor'] = array(
'required' => true,
'sanitize_callback' => 'object_to_uri',
'sanitize_callback' => '\Activitypub\object_to_uri',
);

$params['type'] = array(
Expand Down

0 comments on commit 53e176e

Please sign in to comment.