Skip to content

Commit 21cff7f

Browse files
committed
version bump
1 parent 73ae7a5 commit 21cff7f

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

README.md

Lines changed: 6 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.2
7+
**Stable tag:** 0.16.3
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.16.3 ###
92+
93+
* "cc", "to", ... fields can either be an array or a string
94+
* Remove "style" and "script" HTML elements from content
95+
9196
### 0.16.2 ###
9297

9398
* Fix fatal error in outbox

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

includes/model/class-post.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,10 @@ public function get_content() {
385385
wp_reset_postdata();
386386

387387
$content = \wpautop( \wp_kses( $content, $this->allowed_tags ) );
388+
$content = \trim( \preg_replace( '/[\n\r\t]/', '', $content ) );
388389

389-
$filtered_content = \apply_filters( 'activitypub_the_content', $content, $post );
390-
$content = \html_entity_decode( $filtered_content, \ENT_QUOTES, 'UTF-8' );
390+
$content = \apply_filters( 'activitypub_the_content', $content, $post );
391+
$content = \html_entity_decode( $content, \ENT_QUOTES, 'UTF-8' );
391392

392393
$this->content = $content;
393394

readme.txt

Lines changed: 6 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.2
7+
Stable tag: 0.16.3
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.16.3 =
92+
93+
* "cc", "to", ... fields can either be an array or a string
94+
* Remove "style" and "script" HTML elements from content
95+
9196
= 0.16.2 =
9297

9398
* Fix fatal error in outbox

0 commit comments

Comments
 (0)