-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_instance_peers
Alex Kirk edited this page Feb 8, 2025
·
12 revisions
Modify the instance peers returned for /api/instance/peers
requests.
add_filter( 'mastodon_api_instance_peers', function( $peers ) {
$peers[] = 'https://example.com';
return $peers;
} );
-
array
$peers
The instance peers.
array
The modified instance peers.
apply_filters( 'mastodon_api_instance_peers', $peers )