API changes
This commit is contained in:
parent
fd6cb84ba3
commit
2ef72a0364
5 changed files with 14 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
**Tags:** OStatus, fediverse, activitypub, activitystream
|
**Tags:** OStatus, fediverse, activitypub, activitystream
|
||||||
**Requires at least:** 4.7
|
**Requires at least:** 4.7
|
||||||
**Tested up to:** 6.3
|
**Tested up to:** 6.3
|
||||||
**Stable tag:** 1.0.5
|
**Stable tag:** 1.0.6
|
||||||
**Requires PHP:** 5.6
|
**Requires PHP:** 5.6
|
||||||
**License:** MIT
|
**License:** MIT
|
||||||
**License URI:** http://opensource.org/licenses/MIT
|
**License URI:** http://opensource.org/licenses/MIT
|
||||||
|
@ -105,6 +105,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
|
||||||
|
|
||||||
Project maintained on GitHub at [automattic/wordpress-activitypub](https://github.com/automattic/wordpress-activitypub).
|
Project maintained on GitHub at [automattic/wordpress-activitypub](https://github.com/automattic/wordpress-activitypub).
|
||||||
|
|
||||||
|
### 1.0.6 ###
|
||||||
|
|
||||||
|
* Fixed: more restrictive request verification
|
||||||
|
|
||||||
### 1.0.5 ###
|
### 1.0.5 ###
|
||||||
|
|
||||||
* Fixed: compatibility with WebFinger and NodeInfo plugin
|
* Fixed: compatibility with WebFinger and NodeInfo plugin
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: ActivityPub
|
* Plugin Name: ActivityPub
|
||||||
* Plugin URI: https://github.com/pfefferle/wordpress-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.
|
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
|
||||||
* Version: 1.0.5
|
* Version: 1.0.6
|
||||||
* Author: Matthias Pfefferle & Automattic
|
* Author: Matthias Pfefferle & Automattic
|
||||||
* Author URI: https://automattic.com/
|
* Author URI: https://automattic.com/
|
||||||
* License: MIT
|
* License: MIT
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Inbox {
|
||||||
'/inbox',
|
'/inbox',
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'methods' => WP_REST_Server::EDITABLE,
|
'methods' => WP_REST_Server::CREATABLE,
|
||||||
'callback' => array( self::class, 'shared_inbox_post' ),
|
'callback' => array( self::class, 'shared_inbox_post' ),
|
||||||
'args' => self::shared_inbox_post_parameters(),
|
'args' => self::shared_inbox_post_parameters(),
|
||||||
'permission_callback' => '__return_true',
|
'permission_callback' => '__return_true',
|
||||||
|
@ -51,7 +51,7 @@ class Inbox {
|
||||||
'/users/(?P<user_id>[\w\-\.]+)/inbox',
|
'/users/(?P<user_id>[\w\-\.]+)/inbox',
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'methods' => WP_REST_Server::EDITABLE,
|
'methods' => WP_REST_Server::CREATABLE,
|
||||||
'callback' => array( self::class, 'user_inbox_post' ),
|
'callback' => array( self::class, 'user_inbox_post' ),
|
||||||
'args' => self::user_inbox_post_parameters(),
|
'args' => self::user_inbox_post_parameters(),
|
||||||
'permission_callback' => '__return_true',
|
'permission_callback' => '__return_true',
|
||||||
|
|
|
@ -86,7 +86,7 @@ class Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST-Requets are always signed
|
// POST-Requets are always signed
|
||||||
if ( 'post' === \strtolower( $request->get_method() ) ) {
|
if ( 'get' !== \strtolower( $request->get_method() ) ) {
|
||||||
$verified_request = Signature::verify_http_signature( $request );
|
$verified_request = Signature::verify_http_signature( $request );
|
||||||
if ( \is_wp_error( $verified_request ) ) {
|
if ( \is_wp_error( $verified_request ) ) {
|
||||||
return $verified_request;
|
return $verified_request;
|
||||||
|
|
|
@ -3,7 +3,7 @@ Contributors: automattic, pfefferle, mediaformat, mattwiebe, akirk, jeherve, nur
|
||||||
Tags: OStatus, fediverse, activitypub, activitystream
|
Tags: OStatus, fediverse, activitypub, activitystream
|
||||||
Requires at least: 4.7
|
Requires at least: 4.7
|
||||||
Tested up to: 6.3
|
Tested up to: 6.3
|
||||||
Stable tag: 1.0.5
|
Stable tag: 1.0.6
|
||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
License: MIT
|
License: MIT
|
||||||
License URI: http://opensource.org/licenses/MIT
|
License URI: http://opensource.org/licenses/MIT
|
||||||
|
@ -105,6 +105,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
|
||||||
|
|
||||||
Project maintained on GitHub at [automattic/wordpress-activitypub](https://github.com/automattic/wordpress-activitypub).
|
Project maintained on GitHub at [automattic/wordpress-activitypub](https://github.com/automattic/wordpress-activitypub).
|
||||||
|
|
||||||
|
= 1.0.6 =
|
||||||
|
|
||||||
|
* Fixed: more restrictive request verification
|
||||||
|
|
||||||
= 1.0.5 =
|
= 1.0.5 =
|
||||||
|
|
||||||
* Fixed: compatibility with WebFinger and NodeInfo plugin
|
* Fixed: compatibility with WebFinger and NodeInfo plugin
|
||||||
|
|
Loading…
Reference in a new issue