Skip to content

Commit

Permalink
fix follow
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed May 3, 2020
1 parent 95682db commit 60ad191
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
**Donate link:** https://notiz.blog/donate/
**Tags:** OStatus, fediverse, activitypub, activitystream
**Requires at least:** 4.7
**Tested up to:** 5.4
**Stable tag:** 0.10.0
**Tested up to:** 5.4.1
**Stable tag:** 0.10.1
**Requires PHP:** 5.6
**License:** MIT
**License URI:** http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -88,6 +88,11 @@ 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.10.1 ###

* fix inbox activities, like follow
* fix debug

### 0.10.0 ###

* add image alt text to the ActivityStreams attachment property in a format that Mastodon can read. props [@BenLubar](https://github.com/BenLubar)
Expand Down
2 changes: 1 addition & 1 deletion activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.10.0
* Version: 0.10.1
* Author: Matthias Pfefferle
* Author URI: https://notiz.blog/
* License: MIT
Expand Down
8 changes: 4 additions & 4 deletions includes/rest/class-inbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function request_parameters() {

$params['actor'] = array(
'required' => true,
'type' => array( 'object', 'string' ),
//'type' => array( 'object', 'string' ),
'validate_callback' => function( $param, $request, $key ) {
if ( ! \is_string( $param ) ) {
$param = $param['id'];
Expand All @@ -153,16 +153,16 @@ public static function request_parameters() {

$params['type'] = array(
'required' => true,
'type' => 'enum',
'enum' => array( 'Create' ),
//'type' => 'enum',
//'enum' => array( 'Create' ),
'sanitize_callback' => function( $param, $request, $key ) {
return \strtolower( $param );
},
);

$params['object'] = array(
'required' => true,
'type' => 'object',
//'type' => 'object',
);

return $params;
Expand Down
4 changes: 2 additions & 2 deletions languages/activitypub.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# This file is distributed under the MIT.
msgid ""
msgstr ""
"Project-Id-Version: ActivityPub 0.10.0\n"
"Project-Id-Version: ActivityPub 0.10.1\n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/wordpress-activitypub\n"
"POT-Creation-Date: 2020-03-30 20:54:37+00:00\n"
"POT-Creation-Date: 2020-05-03 22:06:03+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: pfefferle
Donate link: https://notiz.blog/donate/
Tags: OStatus, fediverse, activitypub, activitystream
Requires at least: 4.7
Tested up to: 5.4
Stable tag: 0.10.0
Tested up to: 5.4.1
Stable tag: 0.10.1
Requires PHP: 5.6
License: MIT
License URI: http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -88,6 +88,11 @@ 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.10.1 =

* fix inbox activities, like follow
* fix debug

= 0.10.0 =

* add image alt text to the ActivityStreams attachment property in a format that Mastodon can read. props [@BenLubar](https://github.com/BenLubar)
Expand Down

0 comments on commit 60ad191

Please sign in to comment.