Skip to content

Commit e3fab86

Browse files
committed
fix #5
1 parent 5b754d7 commit e3fab86

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
package-lock.json
55
composer.lock
66
.DS_Store
7+
.vscode/settings.json

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Tags:** nodeinfo, fediverse, ostatus, diaspora, activitypub
66
**Requires at least:** 4.9
77
**Tested up to:** 6.1
8-
**Stable tag:** 1.0.6
8+
**Stable tag:** 1.0.7
99
**Requires PHP:** 5.6
1010
**License:** MIT
1111
**License URI:** https://opensource.org/licenses/MIT
@@ -24,6 +24,10 @@ This plugin provides a barebone JSON file with basic "node"-informations. The fi
2424

2525
Project and support maintained on github at [pfefferle/wordpress-nodeinfo](https://github.com/pfefferle/wordpress-nodeinfo).
2626

27+
### 1.0.7 ###
28+
29+
* NodeInfo 2.1 protocols field has to be an array, not an object
30+
2731
### 1.0.6 ###
2832

2933
* add autodiscovery link for nodeinfo 2.1

includes/class-nodeinfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function generate_software() {
6767
public function generate_protocols() {
6868
$protocols = $this->protocols;
6969

70-
if ( '2.0' === $this->version ) {
70+
if ( version_compare( $this->version, '2.0', '>=' ) ) {
7171
$protocols = array();
7272
} else {
7373
$protocols['inbound'] = array( 'smtp' );
@@ -80,7 +80,7 @@ public function generate_protocols() {
8080
public function generate_services() {
8181
$services = $this->services;
8282

83-
if ( '2.0' === $this->version ) {
83+
if ( version_compare( $this->version, '2.0', '>=' ) ) {
8484
$services['inbound'] = array( 'atom1.0', 'rss2.0', 'pop3' );
8585
$services['outbound'] = array( 'atom1.0', 'rss2.0', 'wordpress', 'smtp' );
8686
} else {

languages/nodeinfo.pot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Copyright (C) 2021 Matthias Pfefferle
1+
# Copyright (C) 2022 Matthias Pfefferle
22
# This file is distributed under the MIT.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: NodeInfo 1.0.6\n"
5+
"Project-Id-Version: NodeInfo 1.0.7\n"
66
"Report-Msgid-Bugs-To: "
77
"https://wordpress.org/support/plugin/wordpress-nodeinfo\n"
8-
"POT-Creation-Date: 2021-01-15 08:33:33+00:00\n"
8+
"POT-Creation-Date: 2022-11-18 09:45:26+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
12+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
15-
"X-Generator: grunt-wp-i18n1.0.2\n"
15+
"X-Generator: grunt-wp-i18n 1.0.3\n"
1616

1717
#: includes/class-nodeinfo-endpoint.php:35
1818
msgid "The version of the NodeInfo scheme"

nodeinfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: NodeInfo
44
* Plugin URI: https://github.com/pfefferle/wordpress-nodeinfo/
55
* Description: NodeInfo is an effort to create a standardized way of exposing metadata about a server running one of the distributed social networks.
6-
* Version: 1.0.6
6+
* Version: 1.0.7
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Donate link: https://notiz.blog/donate/
55
Tags: nodeinfo, fediverse, ostatus, diaspora, activitypub
66
Requires at least: 4.9
77
Tested up to: 6.1
8-
Stable tag: 1.0.6
8+
Stable tag: 1.0.7
99
Requires PHP: 5.6
1010
License: MIT
1111
License URI: https://opensource.org/licenses/MIT
@@ -24,6 +24,10 @@ This plugin provides a barebone JSON file with basic "node"-informations. The fi
2424

2525
Project and support maintained on github at [pfefferle/wordpress-nodeinfo](https://github.com/pfefferle/wordpress-nodeinfo).
2626

27+
= 1.0.7 =
28+
29+
* NodeInfo 2.1 protocols field has to be an array, not an object
30+
2731
= 1.0.6 =
2832

2933
* add autodiscovery link for nodeinfo 2.1

0 commit comments

Comments
 (0)