Skip to content

Commit 479b578

Browse files
committed
Add missing actions to REST API enum: unfollow, unmute, unblock
1 parent 2cbeca4 commit 479b578

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/class-rest-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ public function get_collection_params() {
771771
'description' => \__( 'The Microsub action to perform.', 'microsub' ),
772772
'type' => 'string',
773773
'required' => true,
774-
'enum' => array( 'channels', 'timeline', 'follow', 'mute', 'block', 'search', 'preview' ),
774+
'enum' => array( 'channels', 'timeline', 'follow', 'unfollow', 'mute', 'unmute', 'block', 'unblock', 'search', 'preview' ),
775775
),
776776
'channel' => array(
777777
'description' => \__( 'The channel UID.', 'microsub' ),

0 commit comments

Comments
 (0)