phpcbf
This commit is contained in:
parent
0b4bada2b6
commit
6c95a23d10
1 changed files with 5 additions and 5 deletions
|
@ -49,15 +49,15 @@ class Server {
|
||||||
$json->{'@context'} = \Activitypub\get_context();
|
$json->{'@context'} = \Activitypub\get_context();
|
||||||
$json->id = \get_rest_url( null, 'activitypub/1.0/application' );
|
$json->id = \get_rest_url( null, 'activitypub/1.0/application' );
|
||||||
$json->type = 'Application';
|
$json->type = 'Application';
|
||||||
$json->preferredUsername = parse_url( get_site_url(), PHP_URL_HOST ); // phpcs:ignore snake_case
|
$json->preferredUsername = wp_parse_url( get_site_url(), PHP_URL_HOST ); // phpcs:ignore WordPress.NamingConventions
|
||||||
$json->name = get_bloginfo( 'name' );
|
$json->name = get_bloginfo( 'name' );
|
||||||
$json->summary = 'WordPress-ActivityPub application actor';
|
$json->summary = 'WordPress-ActivityPub application actor';
|
||||||
$json->manuallyApprovesFollowers = true; // phpcs:ignore snake_case
|
$json->manuallyApprovesFollowers = true; // phpcs:ignore WordPress.NamingConventions
|
||||||
$json->icon = [ get_site_icon_url() ]; // phpcs:ignore short array syntax
|
$json->icon = array( get_site_icon_url() ); // phpcs:ignore WordPress.NamingConventions short array syntax
|
||||||
$json->publicKey = (object) array( // phpcs:ignore snake_case
|
$json->publicKey = (object) array( // phpcs:ignore WordPress.NamingConventions
|
||||||
'id' => \get_rest_url( null, 'activitypub/1.0/application#main-key' ),
|
'id' => \get_rest_url( null, 'activitypub/1.0/application#main-key' ),
|
||||||
'owner' => \get_rest_url( null, 'activitypub/1.0/application' ),
|
'owner' => \get_rest_url( null, 'activitypub/1.0/application' ),
|
||||||
'publicKeyPem' => Signature::get_public_key( -1 ), // phpcs:ignore snake_case
|
'publicKeyPem' => Signature::get_public_key( -1 ), // phpcs:ignore WordPress.NamingConventions
|
||||||
);
|
);
|
||||||
|
|
||||||
$response = new WP_REST_Response( $json, 200 );
|
$response = new WP_REST_Response( $json, 200 );
|
||||||
|
|
Loading…
Reference in a new issue