From 1e7e6bba28ddff13ac54625d26b825e98c6a7a04 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Thu, 12 Jan 2023 21:29:21 +0100 Subject: [PATCH] standardise and improve name of attachment setting --- activitypub.php | 2 +- includes/class-admin.php | 4 ++-- includes/model/class-post.php | 2 +- templates/settings.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/activitypub.php b/activitypub.php index 263a5ae..bd91ab3 100644 --- a/activitypub.php +++ b/activitypub.php @@ -19,7 +19,7 @@ namespace Activitypub; * Initialize plugin */ function init() { - \defined( 'ACTIVITYPUB_NUMBER_IMAGES' ) || \define( 'ACTIVITYPUB_NUMBER_IMAGES', 3 ); + \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_ALLOWED_HTML' ) || \define( 'ACTIVITYPUB_ALLOWED_HTML', '