From 4657b9b2023fefd85724325a8b783d95cc1871b2 Mon Sep 17 00:00:00 2001 From: Lai Power Date: Mon, 19 Dec 2022 23:08:11 +0000 Subject: [PATCH] updated plugin `ActivityPub` version 0.14.3 --- .../plugins/activitypub/activitypub.php | 18 +- .../assets/css/activitypub-admin.css | 140 ++++++ .../assets/js/activitypub-admin.js | 20 + .../activitypub/includes/class-admin.php | 52 ++- .../activitypub/includes/class-debug.php | 3 + .../includes/class-health-check.php | 88 ++-- .../activitypub/includes/class-signature.php | 6 +- .../activitypub/includes/class-webfinger.php | 69 +++ .../activitypub/includes/functions.php | 33 +- .../plugins/activitypub/includes/help.php | 55 +++ .../includes/model/class-activity.php | 2 +- .../activitypub/includes/rest/class-inbox.php | 5 +- .../includes/rest/class-nodeinfo.php | 23 +- .../includes/rest/class-outbox.php | 13 +- .../includes/rest/class-webfinger.php | 4 +- .../class-friends-feed-parser-activitypub.php | 409 ++++++++++++++++++ wp-content/plugins/activitypub/readme.txt | 26 +- .../activitypub/templates/admin-header.php | 16 + .../activitypub/templates/author-json.php | 6 - .../activitypub/templates/blog-json.php | 14 +- .../activitypub/templates/followers-list.php | 3 +- .../activitypub/templates/post-json.php | 1 + .../activitypub/templates/settings.php | 100 +++-- .../plugins/activitypub/templates/welcome.php | 96 ++++ 24 files changed, 1059 insertions(+), 143 deletions(-) create mode 100644 wp-content/plugins/activitypub/assets/css/activitypub-admin.css create mode 100644 wp-content/plugins/activitypub/assets/js/activitypub-admin.js create mode 100644 wp-content/plugins/activitypub/includes/class-webfinger.php create mode 100644 wp-content/plugins/activitypub/includes/help.php create mode 100644 wp-content/plugins/activitypub/integration/class-friends-feed-parser-activitypub.php create mode 100644 wp-content/plugins/activitypub/templates/admin-header.php create mode 100644 wp-content/plugins/activitypub/templates/welcome.php diff --git a/wp-content/plugins/activitypub/activitypub.php b/wp-content/plugins/activitypub/activitypub.php index d802cd7b..fe7809e2 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.13.4 + * Version: 0.14.3 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT @@ -19,12 +19,16 @@ namespace Activitypub; * Initialize plugin */ function init() { - \defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || \define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(?:(?<=\s)|^)#(\w*[A-Za-z_]+\w*)' ); + \defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || \define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(?:(?<=\s)|(?<=

)|(?<=
)|^)#([A-Za-z0-9_]+)(?:(?=\s|[[:punct:]]|$))' ); \defined( 'ACTIVITYPUB_ALLOWED_HTML' ) || \define( 'ACTIVITYPUB_ALLOWED_HTML', '