finally fixed #19

This commit is contained in:
Matthias Pfefferle 2019-03-12 22:20:46 +01:00
parent a0471a9eef
commit 7f17d71fcf

View file

@ -24,13 +24,12 @@ if ( has_header_image() ) {
'type' => 'Image', 'type' => 'Image',
'url' => get_header_image(), 'url' => get_header_image(),
); );
} else {
$json->image = array();
} }
$json->inbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/inbox" ); $json->inbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/inbox" );
$json->outbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/outbox" ); $json->outbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/outbox" );
$json->followers = get_rest_url( null, "/activitypub/1.0/users/$author_id/followers" ); $json->followers = get_rest_url( null, "/activitypub/1.0/users/$author_id/followers" );
$json->following = get_rest_url( null, "/activitypub/1.0/users/$author_id/following" );
$json->manuallyApprovesFollowers = apply_filters( 'activitypub_json_manually_approves_followers', __return_false() ); // phpcs:ignore $json->manuallyApprovesFollowers = apply_filters( 'activitypub_json_manually_approves_followers', __return_false() ); // phpcs:ignore