parent
551f531e5f
commit
bf883418ec
4 changed files with 10 additions and 4 deletions
|
@ -88,6 +88,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).
|
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
|
||||||
|
|
||||||
|
### 0.14.1 ###
|
||||||
|
|
||||||
|
* Fix "WebFinger not compatible with PHP < 8.0". props [@mexon](https://github.com/mexon)
|
||||||
|
|
||||||
### 0.14.0 ###
|
### 0.14.0 ###
|
||||||
|
|
||||||
* Friends support: https://wordpress.org/plugins/friends/ props [@akirk](https://github.com/akirk)
|
* Friends support: https://wordpress.org/plugins/friends/ props [@akirk](https://github.com/akirk)
|
||||||
|
|
|
@ -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: 0.14.0
|
* Version: 0.14.1
|
||||||
* Author: Matthias Pfefferle
|
* Author: Matthias Pfefferle
|
||||||
* Author URI: https://notiz.blog/
|
* Author URI: https://notiz.blog/
|
||||||
* License: MIT
|
* License: MIT
|
||||||
|
|
|
@ -44,9 +44,7 @@ class Webfinger {
|
||||||
public static function webfinger( $request ) {
|
public static function webfinger( $request ) {
|
||||||
$resource = $request->get_param( 'resource' );
|
$resource = $request->get_param( 'resource' );
|
||||||
|
|
||||||
$matched = \str_contains( $resource, '@' );
|
if ( \strpos( $resource, '@' ) === false ) {
|
||||||
|
|
||||||
if ( ! $matched ) {
|
|
||||||
return new \WP_Error( 'activitypub_unsupported_resource', \__( 'Resource is invalid', 'activitypub' ), array( 'status' => 400 ) );
|
return new \WP_Error( 'activitypub_unsupported_resource', \__( 'Resource is invalid', 'activitypub' ), array( 'status' => 400 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,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).
|
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
|
||||||
|
|
||||||
|
= 0.14.1 =
|
||||||
|
|
||||||
|
* Fix "WebFinger not compatible with PHP < 8.0". props [@mexon](https://github.com/mexon)
|
||||||
|
|
||||||
= 0.14.0 =
|
= 0.14.0 =
|
||||||
|
|
||||||
* Friends support: https://wordpress.org/plugins/friends/ props [@akirk](https://github.com/akirk)
|
* Friends support: https://wordpress.org/plugins/friends/ props [@akirk](https://github.com/akirk)
|
||||||
|
|
Loading…
Reference in a new issue