added admin_email to metadata

to be able to "Manage your instance" on https://fediverse.network/manage/
This commit is contained in:
Matthias Pfefferle 2019-08-20 13:03:06 +02:00
parent 1665ad65df
commit b6b0743b3f
4 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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 );
}

View file

@ -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