diff --git a/wp-content/plugins/activitypub/.distignore b/wp-content/plugins/activitypub/.distignore index 93fbfdb6..782f2e88 100644 --- a/wp-content/plugins/activitypub/.distignore +++ b/wp-content/plugins/activitypub/.distignore @@ -22,6 +22,8 @@ bin composer.json composer.lock docker-compose.yml +docker-compose-test.yml +Dockerfile gulpfile.js package.json node_modules diff --git a/wp-content/plugins/activitypub/Dockerfile b/wp-content/plugins/activitypub/Dockerfile deleted file mode 100644 index 3b056fd9..00000000 --- a/wp-content/plugins/activitypub/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM php:7.4-alpine3.13 - -RUN mkdir /app - -WORKDIR /app - -# Install Git, NPM & needed libraries -RUN apk update \ - && apk add bash git nodejs npm gettext subversion mysql mysql-client zip \ - && rm -f /var/cache/apk/* - -RUN docker-php-ext-install mysqli - -# Install Composer -RUN EXPECTED_CHECKSUM=$(curl -s https://composer.github.io/installer.sig) \ - && curl https://getcomposer.org/installer -o composer-setup.php \ - && ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" \ - && if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then >&2 echo 'ERROR: Invalid installer checksum'; rm composer-setup.php; exit 1; fi \ - && php composer-setup.php --quiet \ - && php -r "unlink('composer-setup.php');" \ - && mv composer.phar /usr/local/bin/composer - -RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \ - chmod +x wp-cli.phar && \ - mv wp-cli.phar /usr/local/bin/wp - -RUN chmod +x -R ./ diff --git a/wp-content/plugins/activitypub/activitypub.php b/wp-content/plugins/activitypub/activitypub.php index 770a2778..7320f0c6 100644 --- a/wp-content/plugins/activitypub/activitypub.php +++ b/wp-content/plugins/activitypub/activitypub.php @@ -3,9 +3,9 @@ * 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.15.0 - * Author: Matthias Pfefferle - * Author URI: https://notiz.blog/ + * Version: 0.17.0 + * Author: Matthias Pfefferle & Automattic + * Author URI: https://automattic.com/ * License: MIT * License URI: http://opensource.org/licenses/MIT * Requires PHP: 5.6 @@ -19,9 +19,12 @@ namespace Activitypub; * Initialize plugin */ function init() { + \defined( 'ACTIVITYPUB_EXCERPT_LENGTH' ) || \define( 'ACTIVITYPUB_EXCERPT_LENGTH', 400 ); + \defined( 'ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS' ) || \define( 'ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS', 3 ); \defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || \define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(?:(?<=\s)|(?<=

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