diff --git a/.github/changelog/1524-from-description b/.github/changelog/1524-from-description deleted file mode 100644 index 19ac721a5e..0000000000 --- a/.github/changelog/1524-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Check if pretty permalinks are enabled and recommend to use threaded comments. diff --git a/.github/changelog/1546-from-description b/.github/changelog/1546-from-description deleted file mode 100644 index d0fe401eff..0000000000 --- a/.github/changelog/1546-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: changed - -Improve the troubleshooting UI and show Site-Health stats in ActivityPub settings. diff --git a/.github/changelog/1547-from-description b/.github/changelog/1547-from-description deleted file mode 100644 index b49010d857..0000000000 --- a/.github/changelog/1547-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fixed - -Fixed some some bugs and added additional informations on the Debug tab of the Site-Health page. diff --git a/.github/changelog/1552-from-description b/.github/changelog/1552-from-description deleted file mode 100644 index 84eea39b2b..0000000000 --- a/.github/changelog/1552-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Add option to enable/disable the `Vary` Header to the "Advanced Settings". diff --git a/.github/changelog/1553-from-description b/.github/changelog/1553-from-description deleted file mode 100644 index 4ff788f868..0000000000 --- a/.github/changelog/1553-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Add option to enable/disable the "shared inbox" to the "Advanced Settings". diff --git a/.github/changelog/1554-from-description b/.github/changelog/1554-from-description deleted file mode 100644 index bd156058da..0000000000 --- a/.github/changelog/1554-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Sites with comments from the Fediverse no longer create uncached extra fields posts that flood the Outbox. diff --git a/.github/changelog/1555-from-description b/.github/changelog/1555-from-description deleted file mode 100644 index 1a398df8ac..0000000000 --- a/.github/changelog/1555-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Follow-up to the reply block changes that makes sure Mastodon embeds are displayed in the editor. diff --git a/.github/changelog/1557-from-description b/.github/changelog/1557-from-description deleted file mode 100644 index 8fa7cc371b..0000000000 --- a/.github/changelog/1557-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: changed - -Increased compatibility with Mobilizon and other platforms by improving signature verification for different key formats. diff --git a/.github/changelog/1559-from-description b/.github/changelog/1559-from-description deleted file mode 100644 index 1c7f772b2d..0000000000 --- a/.github/changelog/1559-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Outbox endpoint bug where non-numeric usernames caused errors when querying Outbox data. diff --git a/.github/changelog/1561-from-description b/.github/changelog/1561-from-description deleted file mode 100644 index c20edd82ec..0000000000 --- a/.github/changelog/1561-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Importers are loaded on admin-specific hook. diff --git a/.github/changelog/1564-from-description b/.github/changelog/1564-from-description deleted file mode 100644 index 52b1020734..0000000000 --- a/.github/changelog/1564-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Ensure that an `Activity` has an `Actor` before adding it to the Outbox. diff --git a/.github/changelog/1566-from-description b/.github/changelog/1566-from-description deleted file mode 100644 index a2b2510ed4..0000000000 --- a/.github/changelog/1566-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Upgrade routine that removes any erroneously created extra field entries. diff --git a/.github/changelog/1567-from-description b/.github/changelog/1567-from-description deleted file mode 100644 index 264a0427f0..0000000000 --- a/.github/changelog/1567-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Transformers allow settings values to false again, a regression from 5.5.0. diff --git a/.github/changelog/1570-from-description b/.github/changelog/1570-from-description deleted file mode 100644 index 89a8786d40..0000000000 --- a/.github/changelog/1570-from-description +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Show Site Health error if site uses old "Almost Pretty Permalinks" structure. diff --git a/.github/changelog/add-advanced-settings b/.github/changelog/add-advanced-settings deleted file mode 100644 index a6a1629772..0000000000 --- a/.github/changelog/add-advanced-settings +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Advanced Settings tab, with special settings for advanced users. diff --git a/.github/changelog/add-oembed-reply-block b/.github/changelog/add-oembed-reply-block deleted file mode 100644 index 740b80a6eb..0000000000 --- a/.github/changelog/add-oembed-reply-block +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Reply block: show embeds where available. diff --git a/.github/changelog/add-same-server-domain-move b/.github/changelog/add-same-server-domain-move deleted file mode 100644 index ba9ca17bd5..0000000000 --- a/.github/changelog/add-same-server-domain-move +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Support same-server domain migrations. diff --git a/.github/changelog/update-button-only-mode-for-follow-me b/.github/changelog/update-button-only-mode-for-follow-me deleted file mode 100644 index 27a48fe530..0000000000 --- a/.github/changelog/update-button-only-mode-for-follow-me +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: changed - -Configure the "Follow Me" button to have a button-only mode. diff --git a/CHANGELOG.md b/CHANGELOG.md index d332067964..d6a51054ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.7.0] - 2025-04-11 +### Added +- Advanced Settings tab, with special settings for advanced users. [#1449] +- Check if pretty permalinks are enabled and recommend to use threaded comments. [#1524] +- Reply block: show embeds where available. [#1572] +- Support same-server domain migrations. [#1572] +- Upgrade routine that removes any erroneously created extra field entries. [#1566] + +### Changed +- Add option to enable/disable the "shared inbox" to the "Advanced Settings". [#1553] +- Add option to enable/disable the `Vary` Header to the "Advanced Settings". [#1552] +- Configure the "Follow Me" button to have a button-only mode. [#1133] +- Importers are loaded on admin-specific hook. [#1561] +- Improve the troubleshooting UI and show Site-Health stats in ActivityPub settings. [#1546] +- Increased compatibility with Mobilizon and other platforms by improving signature verification for different key formats. [#1557] + +### Fixed +- Ensure that an `Activity` has an `Actor` before adding it to the Outbox. [#1564] +- Fixed some bugs and added additional information on the Debug tab of the Site-Health page. [#1547] +- Follow-up to the reply block changes that makes sure Mastodon embeds are displayed in the editor. [#1555] +- Outbox endpoint bug where non-numeric usernames caused errors when querying Outbox data. [#1559] +- Show Site Health error if site uses old "Almost Pretty Permalinks" structure. [#1570] +- Sites with comments from the Fediverse no longer create uncached extra fields posts that flood the Outbox. [#1554] +- Transformers allow settings values to false again, a regression from 5.5.0. [#1567] + ## [5.6.1] - 2025-04-02 ### Fixed - "Post Interactions" settings will now be saved to the options table. [#1540] @@ -1119,6 +1144,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - initial +[5.7.0]: https://github.com/Automattic/wordpress-activitypub/compare/5.6.1...5.7.0 [5.6.1]: https://github.com/Automattic/wordpress-activitypub/compare/5.6.0...5.6.1 [5.6.0]: https://github.com/Automattic/wordpress-activitypub/compare/5.5.0...5.6.0 [5.5.0]: https://github.com/Automattic/wordpress-activitypub/compare/5.4.1...5.5.0 diff --git a/activitypub.php b/activitypub.php index 8bc6487857..65ab9e2e1f 100644 --- a/activitypub.php +++ b/activitypub.php @@ -3,7 +3,7 @@ * Plugin Name: ActivityPub * Plugin URI: https://github.com/Automattic/wordpress-activitypub * Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format. - * Version: 5.6.1 + * Version: 5.7.0 * Author: Matthias Pfefferle & Automattic * Author URI: https://automattic.com/ * License: MIT @@ -19,7 +19,7 @@ use WP_CLI; -\define( 'ACTIVITYPUB_PLUGIN_VERSION', '5.6.1' ); +\define( 'ACTIVITYPUB_PLUGIN_VERSION', '5.7.0' ); // Plugin related constants. \define( 'ACTIVITYPUB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/includes/class-migration.php b/includes/class-migration.php index 91cf8c82a7..10e9d44cbf 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -188,7 +188,7 @@ public static function maybe_migrate() { \wp_schedule_single_event( \time(), 'activitypub_upgrade', array( 'update_comment_author_emails' ) ); \add_action( 'init', 'flush_rewrite_rules', 20 ); } - if ( \version_compare( $version_from_db, 'unreleased', '<' ) ) { + if ( \version_compare( $version_from_db, '5.7.0', '<' ) ) { self::delete_mastodon_api_orphaned_extra_fields(); } diff --git a/includes/functions.php b/includes/functions.php index d19c0df603..d5b37b1d01 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -364,12 +364,12 @@ function user_can_activitypub( $user_id ) { /** * Allow plugins to disable users for ActivityPub. * - * @deprecated unreleased Use the `activitypub_user_can_activitypub` filter instead. + * @deprecated 5.7.0 Use the `activitypub_user_can_activitypub` filter instead. * * @param boolean $disabled True if the user is disabled, false otherwise. * @param int $user_id The user ID. */ - $enabled = ! \apply_filters_deprecated( 'activitypub_is_user_disabled', array( ! $enabled, $user_id ), 'unreleased', 'activitypub_user_can_activitypub' ); + $enabled = ! \apply_filters_deprecated( 'activitypub_is_user_disabled', array( ! $enabled, $user_id ), '5.7.0', 'activitypub_user_can_activitypub' ); /** * Allow plugins to enable/disable users for ActivityPub. @@ -383,7 +383,7 @@ function user_can_activitypub( $user_id ) { /** * This function checks if a user is disabled for ActivityPub. * - * @deprecated unreleased Use the `user_can_activitypub` function instead. + * @deprecated 5.7.0 Use the `user_can_activitypub` function instead. * * @param int $user_id The user ID. * diff --git a/readme.txt b/readme.txt index f58d072d49..b518d94b25 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, pfefferle, mattwiebe, obenland, akirk, jeherve, mediaf Tags: OStatus, fediverse, activitypub, activitystream Requires at least: 6.4 Tested up to: 6.7 -Stable tag: 5.6.1 +Stable tag: 5.7.0 Requires PHP: 7.2 License: MIT License URI: http://opensource.org/licenses/MIT @@ -129,6 +129,31 @@ For reasons of data protection, it is not possible to see the followers of other == Changelog == +### 5.7.0 - 2025-04-11 +#### Added +- Advanced Settings tab, with special settings for advanced users. +- Check if pretty permalinks are enabled and recommend to use threaded comments. +- Reply block: show embeds where available. +- Support same-server domain migrations. +- Upgrade routine that removes any erroneously created extra field entries. + +#### Changed +- Add option to enable/disable the "shared inbox" to the "Advanced Settings". +- Add option to enable/disable the `Vary` Header to the "Advanced Settings". +- Configure the "Follow Me" button to have a button-only mode. +- Importers are loaded on admin-specific hook. +- Improve the troubleshooting UI and show Site-Health stats in ActivityPub settings. +- Increased compatibility with Mobilizon and other platforms by improving signature verification for different key formats. + +#### Fixed +- Ensure that an `Activity` has an `Actor` before adding it to the Outbox. +- Fixed some some bugs and added additional informations on the Debug tab of the Site-Health page. +- Follow-up to the reply block changes that makes sure Mastodon embeds are displayed in the editor. +- Outbox endpoint bug where non-numeric usernames caused errors when querying Outbox data. +- Show Site Health error if site uses old "Almost Pretty Permalinks" structure. +- Sites with comments from the Fediverse no longer create uncached extra fields posts that flood the Outbox. +- Transformers allow settings values to false again, a regression from 5.5.0. + ### 5.6.1 - 2025-04-02 #### Fixed - "Post Interactions" settings will now be saved to the options table.