Skip to content

Commit c992cb6

Browse files
authored
Enable REST API support for Actor post type (#2089)
1 parent 9b48d90 commit c992cb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/class-activitypub.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ private static function register_post_types() {
458458
'singular_name' => _x( 'Follower', 'post_type single name', 'activitypub' ),
459459
),
460460
'public' => false,
461+
'show_in_rest' => true,
461462
'hierarchical' => false,
462463
'rewrite' => false,
463464
'query_var' => false,
@@ -506,7 +507,7 @@ private static function register_post_types() {
506507
);
507508

508509
// Register Inbox Post-Type.
509-
register_post_type(
510+
\register_post_type(
510511
Inbox::POST_TYPE,
511512
array(
512513
'labels' => array(
@@ -625,7 +626,7 @@ private static function register_post_types() {
625626
);
626627

627628
// Register Outbox Post-Type.
628-
register_post_type(
629+
\register_post_type(
629630
Outbox::POST_TYPE,
630631
array(
631632
'labels' => array(

0 commit comments

Comments
 (0)