From a27a4fc234dcdf3ac1484ec712257afc4b112bfd Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 27 Dec 2022 14:17:31 +0100 Subject: [PATCH] remove empty `trim` fix #136 --- activitypub.php | 2 +- readme.txt | 7 ++++++- templates/blog-json.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/activitypub.php b/activitypub.php index fe7809e..770a277 100644 --- a/activitypub.php +++ b/activitypub.php @@ -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.14.3 + * Version: 0.15.0 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT diff --git a/readme.txt b/readme.txt index e4b5e13..5dd16d3 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/ Tags: OStatus, fediverse, activitypub, activitystream Requires at least: 4.7 Tested up to: 6.1 -Stable tag: 0.14.3 +Stable tag: 0.15.0 Requires PHP: 5.6 License: MIT License URI: http://opensource.org/licenses/MIT @@ -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.15.0 = + +* Enable ActivityPub only for users that can `publish_posts` + + = 0.14.3 = * Better error handling. props [@akirk](https://github.com/akirk) diff --git a/templates/blog-json.php b/templates/blog-json.php index 18e65af..4a1efc8 100644 --- a/templates/blog-json.php +++ b/templates/blog-json.php @@ -38,7 +38,7 @@ $json->manuallyApprovesFollowers = \apply_filters( 'activitypub_json_manually_ap $json->publicKey = array( 'id' => \get_home_url( '/' ) . '#main-key', 'owner' => \get_home_url( '/' ), - 'publicKeyPem' => \trim(), + 'publicKeyPem' => '', ); $json->tag = array();