Skip to content

Commit 60ad191

Browse files
committed
fix follow
1 parent 95682db commit 60ad191

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
**Donate link:** https://notiz.blog/donate/
44
**Tags:** OStatus, fediverse, activitypub, activitystream
55
**Requires at least:** 4.7
6-
**Tested up to:** 5.4
7-
**Stable tag:** 0.10.0
6+
**Tested up to:** 5.4.1
7+
**Stable tag:** 0.10.1
88
**Requires PHP:** 5.6
99
**License:** MIT
1010
**License URI:** http://opensource.org/licenses/MIT
@@ -88,6 +88,11 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
8888

8989
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
9090

91+
### 0.10.1 ###
92+
93+
* fix inbox activities, like follow
94+
* fix debug
95+
9196
### 0.10.0 ###
9297

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

activitypub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ActivityPub
44
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
55
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
6-
* Version: 0.10.0
6+
* Version: 0.10.1
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT

includes/rest/class-inbox.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static function request_parameters() {
136136

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

154154
$params['type'] = array(
155155
'required' => true,
156-
'type' => 'enum',
157-
'enum' => array( 'Create' ),
156+
//'type' => 'enum',
157+
//'enum' => array( 'Create' ),
158158
'sanitize_callback' => function( $param, $request, $key ) {
159159
return \strtolower( $param );
160160
},
161161
);
162162

163163
$params['object'] = array(
164164
'required' => true,
165-
'type' => 'object',
165+
//'type' => 'object',
166166
);
167167

168168
return $params;

languages/activitypub.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# This file is distributed under the MIT.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: ActivityPub 0.10.0\n"
5+
"Project-Id-Version: ActivityPub 0.10.1\n"
66
"Report-Msgid-Bugs-To: "
77
"https://wordpress.org/support/plugin/wordpress-activitypub\n"
8-
"POT-Creation-Date: 2020-03-30 20:54:37+00:00\n"
8+
"POT-Creation-Date: 2020-05-03 22:06:03+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"

readme.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: pfefferle
33
Donate link: https://notiz.blog/donate/
44
Tags: OStatus, fediverse, activitypub, activitystream
55
Requires at least: 4.7
6-
Tested up to: 5.4
7-
Stable tag: 0.10.0
6+
Tested up to: 5.4.1
7+
Stable tag: 0.10.1
88
Requires PHP: 5.6
99
License: MIT
1010
License URI: http://opensource.org/licenses/MIT
@@ -88,6 +88,11 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
8888

8989
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
9090

91+
= 0.10.1 =
92+
93+
* fix inbox activities, like follow
94+
* fix debug
95+
9196
= 0.10.0 =
9297

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

0 commit comments

Comments
 (0)