Skip to content

Commit c89d8f2

Browse files
committed
fix #269
1 parent 7085921 commit c89d8f2

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:** OStatus, fediverse, activitypub, activitystream
55
**Requires at least:** 4.7
66
**Tested up to:** 6.1
7-
**Stable tag:** 0.16.1
7+
**Stable tag:** 0.16.2
88
**Requires PHP:** 5.6
99
**License:** MIT
1010
**License URI:** http://opensource.org/licenses/MIT
@@ -88,6 +88,10 @@ 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.16.2 ###
92+
93+
* Fix fatal error in outbox
94+
9195
### 0.16.1 ###
9296

9397
* Fix "update and create, posts appear blank on Mastodon" issue

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.16.1
6+
* Version: 0.16.2
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT

includes/rest/class-outbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function user_outbox_get( $request ) {
103103
foreach ( $posts as $post ) {
104104
$activitypub_post = new \Activitypub\Model\Post( $post );
105105
$activitypub_activity = new \Activitypub\Model\Activity( 'Create', \Activitypub\Model\Activity::TYPE_NONE );
106-
$activitypub_activity->from_post( $activitypub_post->to_array() );
106+
$activitypub_activity->from_post( $activitypub_post );
107107
$json->orderedItems[] = $activitypub_activity->to_array(); // phpcs:ignore
108108
}
109109
}

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/
44
Tags: OStatus, fediverse, activitypub, activitystream
55
Requires at least: 4.7
66
Tested up to: 6.1
7-
Stable tag: 0.16.1
7+
Stable tag: 0.16.2
88
Requires PHP: 5.6
99
License: MIT
1010
License URI: http://opensource.org/licenses/MIT
@@ -88,6 +88,10 @@ 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.16.2 =
92+
93+
* Fix fatal error in outbox
94+
9195
= 0.16.1 =
9296

9397
* Fix "update and create, posts appear blank on Mastodon" issue

0 commit comments

Comments
 (0)