From 8ded57667b41887d53f7abe54b52c9797354729d Mon Sep 17 00:00:00 2001 From: Lai Power Date: Fri, 25 Dec 2020 19:23:08 +0000 Subject: [PATCH] updated plugin `ActivityPub` version 0.12.0 --- .../plugins/activitypub/activitypub.php | 20 +- .../includes/class-activity-dispatcher.php | 37 ++- .../includes/class-activitypub.php | 42 +-- .../activitypub/includes/class-admin.php | 37 +-- .../activitypub/includes/class-hashtag.php | 28 -- .../includes/class-health-check.php | 71 +++++ .../activitypub/includes/class-signature.php | 23 +- .../activitypub/includes/functions.php | 59 +--- .../includes/model/class-activity.php | 31 +- .../activitypub/includes/model/class-post.php | 184 +++++++----- .../includes/peer/class-followers.php | 4 +- .../activitypub/includes/peer/class-users.php | 67 +++++ .../includes/rest/class-followers.php | 7 +- .../includes/rest/class-following.php | 7 +- .../activitypub/includes/rest/class-inbox.php | 147 ++++++++-- .../includes/rest/class-nodeinfo.php | 17 +- .../includes/rest/class-ostatus.php | 5 +- .../includes/rest/class-outbox.php | 9 +- .../includes/rest/class-server.php | 6 +- .../includes/rest/class-webfinger.php | 9 +- .../activitypub/languages/activitypub.pot | 274 +----------------- wp-content/plugins/activitypub/readme.txt | 29 +- .../activitypub/templates/json-author.php | 26 +- .../activitypub/templates/json-post.php | 4 +- .../activitypub/templates/settings.php | 54 ++-- 25 files changed, 597 insertions(+), 600 deletions(-) create mode 100644 wp-content/plugins/activitypub/includes/peer/class-users.php diff --git a/wp-content/plugins/activitypub/activitypub.php b/wp-content/plugins/activitypub/activitypub.php index e6a5539..3eef785 100644 --- a/wp-content/plugins/activitypub/activitypub.php +++ b/wp-content/plugins/activitypub/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.10.1 + * Version: 0.12.0 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT @@ -20,18 +20,19 @@ namespace Activitypub; */ function init() { \defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || \define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(?:(?<=\s)|^)#(\w*[A-Za-z_]+\w*)' ); + \defined( 'ACTIVITYPUB_ALLOWED_HTML' ) || \define( 'ACTIVITYPUB_ALLOWED_HTML', '