diff --git a/README.md b/README.md index 8c363b3..9fbf8c2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Tags:** nodeinfo, fediverse, ostatus, diaspora, activitypub **Requires at least:** 4.9 **Tested up to:** 6.4 -**Stable tag:** 2.2.0 +**Stable tag:** 2.3.0 **Requires PHP:** 5.6 **License:** MIT **License URI:** https://opensource.org/licenses/MIT @@ -24,6 +24,10 @@ This plugin provides a barebone JSON file with basic "node"-informations. The fi Project and support maintained on github at [pfefferle/wordpress-nodeinfo](https://github.com/pfefferle/wordpress-nodeinfo). +### 2.3.0 ### + +* add nodeName, nodeDescription and nodeIcon to meta array + ### 2.2.0 ### * add MAUs diff --git a/includes/class-nodeinfo.php b/includes/class-nodeinfo.php index ff6870a..ada5577 100644 --- a/includes/class-nodeinfo.php +++ b/includes/class-nodeinfo.php @@ -107,14 +107,16 @@ public function generate_services() { public function generate_metadata() { $metadata = $this->metadata; - $metadata['email'] = get_option( 'admin_email' ); - $metadata['generator'] = array( 'name' => 'NodeInfo WordPress-Plugin', 'version' => nodeinfo_version(), 'repository' => 'https://github.com/pfefferle/wordpress-nodeinfo/', ); + $metadata['nodeName'] = \get_bloginfo( 'name' ); + $metadata['nodeDescription'] = \get_bloginfo( 'description' ); + $metadata['nodeIcon'] = \get_site_icon_url(); + $this->metadata = apply_filters( 'nodeinfo_data_metadata', $metadata, $this->version ); } diff --git a/includes/class-nodeinfo2.php b/includes/class-nodeinfo2.php index 26b3e78..078e3fc 100644 --- a/includes/class-nodeinfo2.php +++ b/includes/class-nodeinfo2.php @@ -89,7 +89,15 @@ public function generate_services() { public function generate_metadata() { $metadata = $this->metadata; - $metadata['email'] = get_option( 'admin_email' ); + $metadata['generator'] = array( + 'name' => 'NodeInfo WordPress-Plugin', + 'version' => nodeinfo_version(), + 'repository' => 'https://github.com/pfefferle/wordpress-nodeinfo/', + ); + + $metadata['nodeName'] = \get_bloginfo( 'name' ); + $metadata['nodeDescription'] = \get_bloginfo( 'description' ); + $metadata['nodeIcon'] = \get_site_icon_url(); $this->metadata = apply_filters( 'nodeinfo2_data_metadata', $metadata, $this->version ); } diff --git a/languages/nodeinfo.pot b/languages/nodeinfo.pot index 3554c5b..9f2cd5e 100644 --- a/languages/nodeinfo.pot +++ b/languages/nodeinfo.pot @@ -2,10 +2,10 @@ # This file is distributed under the MIT. msgid "" msgstr "" -"Project-Id-Version: NodeInfo 2.2.0\n" +"Project-Id-Version: NodeInfo 2.3.0\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/wordpress-nodeinfo\n" -"POT-Creation-Date: 2023-10-16 15:44:17+00:00\n" +"POT-Creation-Date: 2023-12-22 14:57:32+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/nodeinfo.php b/nodeinfo.php index 18ae013..e0c176b 100644 --- a/nodeinfo.php +++ b/nodeinfo.php @@ -3,7 +3,7 @@ * Plugin Name: NodeInfo * Plugin URI: https://github.com/pfefferle/wordpress-nodeinfo/ * Description: NodeInfo is an effort to create a standardized way of exposing metadata about a server running one of the distributed social networks. - * Version: 2.2.0 + * Version: 2.3.0 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT diff --git a/readme.txt b/readme.txt index 2dfcfd5..346769a 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Donate link: https://notiz.blog/donate/ Tags: nodeinfo, fediverse, ostatus, diaspora, activitypub Requires at least: 4.9 Tested up to: 6.4 -Stable tag: 2.2.0 +Stable tag: 2.3.0 Requires PHP: 5.6 License: MIT License URI: https://opensource.org/licenses/MIT @@ -24,6 +24,10 @@ This plugin provides a barebone JSON file with basic "node"-informations. The fi Project and support maintained on github at [pfefferle/wordpress-nodeinfo](https://github.com/pfefferle/wordpress-nodeinfo). += 2.3.0 = + +* add nodeName, nodeDescription and nodeIcon to meta array + = 2.2.0 = * add MAUs