diff --git a/README.md b/README.md index a1c043f..38dbe4a 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides. Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). +### 0.7.4 ### + +* added admin_email to metadata, to be able to "Manage your instance" on https://fediverse.network/manage/ + ### 0.7.3 ### * refactorings diff --git a/activitypub.php b/activitypub.php index ec4f0fc..9571e27 100644 --- a/activitypub.php +++ b/activitypub.php @@ -3,7 +3,7 @@ * Plugin Name: ActivityPub * Plugin URI: https://github.com/pfefferle/wordpress-activitypub/ * Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format. - * Version: 0.7.3 + * Version: 0.7.4 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT diff --git a/includes/rest/class-nodeinfo.php b/includes/rest/class-nodeinfo.php index aeb5d07..7175dd4 100644 --- a/includes/rest/class-nodeinfo.php +++ b/includes/rest/class-nodeinfo.php @@ -129,7 +129,9 @@ class Nodeinfo { 'outbound' => array(), ); - $nodeinfo['metadata'] = new \stdClass(); + $nodeinfo['metadata'] = array( + 'email' => get_option( 'admin_email' ), + ); return new \WP_REST_Response( $nodeinfo, 200 ); } diff --git a/readme.txt b/readme.txt index f4ae742..9ad0ed3 100644 --- a/readme.txt +++ b/readme.txt @@ -84,6 +84,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides. Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). += 0.7.4 = + +* added admin_email to metadata, to be able to "Manage your instance" on https://fediverse.network/manage/ + = 0.7.3 = * refactorings