updated plugin ActivityPub version 3.3.3

This commit is contained in:
2024-10-09 12:44:17 +00:00
committed by Gitium
parent fb4b27bbc6
commit c54fa007bd
106 changed files with 7070 additions and 2918 deletions

View File

@ -3,7 +3,7 @@ Contributors: automattic, pfefferle, mediaformat, mattwiebe, akirk, jeherve, nur
Tags: OStatus, fediverse, activitypub, activitystream
Requires at least: 5.5
Tested up to: 6.6
Stable tag: 2.6.1
Stable tag: 3.3.3
Requires PHP: 7.0
License: MIT
License URI: http://opensource.org/licenses/MIT
@ -20,7 +20,7 @@ An example: I give you my Mastodon profile name: `@pfefferle@mastodon.social`. Y
Once you follow Jane's `@jane@example.com` profile, any blog post she crafts on `example.com` will land in your Home feed. Simultaneously, by following the blog-wide profile `@example.com@example.com`, you'll receive updates from all authors.
**Note**: if no one follows your author or blog instance, your posts remain unseen. The simplest method to verify the plugin's operation is by following your profile. If you possess a Mastodon profile, initiate by following your new one.
**Note**: If no one follows your author or blog instance, your posts remain unseen. The simplest method to verify the plugin's operation is by following your profile. If you possess a Mastodon profile, initiate by following your new one.
The plugin works with the following tested federated platforms, but there may be more that it works with as well:
@ -48,7 +48,7 @@ So whats the process?
1. On your blog, publish a new post.
1. From Mastodon, check to see if the new post appears in your Home feed.
Please note that it may take up to 15 minutes or so for the new post to show up in your federated feed. This is because the messages are sent to the federated platforms using a delayed cron. This avoids breaking the publishing process for those cases where users might have lots of followers. So please dont assume that just because you didnt see it show up right away that something is broken. Give it some time. In most cases, it will show up within a few minutes, and youll know everything is working as expected.
**Note**: It may take up to 15 minutes or so for the new post to show up in your federated feed. This is because the messages are sent to the federated platforms using a delayed cron. This avoids breaking the publishing process for those cases where users might have lots of followers. So please dont assume that just because you didnt see it show up right away that something is broken. Give it some time. In most cases, it will show up within a few minutes, and youll know everything is working as expected.
== Frequently Asked Questions ==
@ -105,6 +105,12 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
If you are running your blog in a subdirectory, but have a different [wp_siteurl](https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/), you don't need the redirect, because the index.php will take care of that.
= What if you are running your blog behind a reverse proxy with Apache? =
If you are using a reverse proxy with Apache to run your host you may encounter that you are unable to have followers join the blog. This will occur because the proxy system rewrites the host headers to be the internal DNS name of your server, which the plugin then uses to attempt to sign the replies. The remote site attempting to follow your users is expecting the public DNS name on the replies. In these cases you will need to use the 'ProxyPreserveHost On' directive to ensure the external host name is passed to your internal host.
If you are using SSL between the proxy and internal host you may also need to `SSLProxyCheckPeerName off` if your internal host can not answer with the correct SSL name. This may present a security issue in some environments.
= Constants =
The plugin uses PHP Constants to enable, disable or change its default behaviour. Please use them with caution and only if you know what you are doing.
@ -115,6 +121,7 @@ The plugin uses PHP Constants to enable, disable or change its default behaviour
* `ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS` - Change the number of attachments, that should be federated. Default: `3`.
* `ACTIVITYPUB_HASHTAGS_REGEXP` - Change the default regex to detect hashtext in a text. Default: `(?:(?<=\s)|(?<=<p>)|(?<=<br>)|^)#([A-Za-z0-9_]+)(?:(?=\s|[[:punct:]]|$))`.
* `ACTIVITYPUB_USERNAME_REGEXP` - Change the default regex to detect @-replies in a text. Default: `(?:([A-Za-z0-9\._-]+)@((?:[A-Za-z0-9_-]+\.)+[A-Za-z]+))`.
* `ACTIVITYPUB_URL_REGEXP` - Change the default regex to detect urls in a text. Default: `(www.|http:|https:)+[^\s]+[\w\/]`.
* `ACTIVITYPUB_CUSTOM_POST_CONTENT` - Change the default template for Activities. Default: `<strong>[ap_title]</strong>\n\n[ap_content]\n\n[ap_hashtags]\n\n[ap_shortlink]`.
* `ACTIVITYPUB_AUTHORIZED_FETCH` - Enable AUTHORIZED_FETCH. Default: `false`.
* `ACTIVITYPUB_DISABLE_REWRITES` - Disable auto generation of `mod_rewrite` rules. Default: `false`.
@ -131,62 +138,95 @@ The followers of a user can be found in the menu under "Users" -> "Followers" or
For reasons of data protection, it is not possible to see the followers of other users.
== Screenshots ==
1. The "Follow me"-Block in the Block-Editor
2. The "Followers"-Block in the Block-Editor
3. The "Federated Reply"-Block in the Block-Editor
4. A "Federated Reply" in a Post
5. A Blog-Profile on Mastodon
== Changelog ==
= 2.6.1 =
= 3.3.3 =
* Fixed: Extra Fields will generate wrong entries
* Fixed: Sanitization callback
* Improved: A lot of PHPCS cleanups
* Improved: Prepare multi-lang support
= 2.6.0 =
= 3.3.2 =
* Added: Support for FEP-fb2a
* Added: CRUD support for Extra Fields
* Improved: Remote-Follow UI and UX
* Improved: Open Graph `fediverse:creator` implementation
* Fixed: Compatibility issues with fed.brid.gy
* Fixed: Remote-Reply endpoint
* Fixed: WebFinger Error Codes (thanks to the FediTest project)
* Fixed: Fatal Error when wp_schedule_single_event third argument is being passed as a string
* Fixed: Keep priority of Icons
* Fixed: Fatal error if remote-object is `WP_Error`
* Improved: Adopt WordPress PHP Coding Standards
= 2.5.0 =
= 3.3.1 =
* Added: WebFinger cors header
* Added: WebFinger Content-Type
* Added: The Fediverse creator of a post to OpenGraph
* Improved: Try to lookup local users first for Enable Mastodon Apps
* Improved: Send also Announces for deletes
* Improved: Load time by adding `count_total=false` to `WP_User_Query`
* Fixed: Several WebFinger issues
* Fixed: Redirect issue for Application user
* Fixed: Accessibilty issues with missing screen-reader-text on User overview page
* Fixed: PHP Warnings
* Fixed: PHPCS issues
= 2.4.0 =
= 3.3.0 =
* Added: A core/embed block filter to transform iframes to links
* Added: Basic support of incoming `Announce`s
* Added: Improve attachment handling
* Added: Notifications: Introduce general class and use it for new follows
* Added: Always fall back to `get_by_username` if one of the above fail
* Added: Notification support for Jetpack
* Added: EMA: Support for fetching external statuses without replies
* Added: EMA: Remote context
* Added: EMA: Allow searching for URLs
* Added: EMA: Ensuring numeric ids is now done in EMA directly
* Added: Podcast support
* Added: Follower count to "At a Glance" dashboard widget
* Improved: Use `Note` as default Object-Type, instead of `Article`
* Improved: Improve `AUTHORIZED_FETCH`
* Improved: Only send Mentions to comments in the direct hierarchy
* Improved: Improve transformer
* Improved: Improve Lemmy compatibility
* Improved: Updated JS dependencies
* Fixed: EMA: Add missing static keyword and try to lookup if the id is 0
* Fixed: Blog-wide account when WordPress is in subdirectory
* Fixed: Funkwhale URLs
* Fixed: Prevent infinite loops in `get_comment_ancestors`
* Fixed: Better Content-Negotiation handling
* Added: Content warning support
* Added: Replies collection
* Added: Enable Mastodon Apps: support profile editing, blog user
* Added: Follow Me/Followers: add inherit mode for dynamic templating
* Fixed: Cropping Header Images for users without the 'customize' capability
* Improved: OpenSSL handling
* Improved: Added missing @ in Follow-Me block
See full Changelog on [GitHub](https://github.com/Automattic/wordpress-activitypub/blob/master/CHANGELOG.md).
= 3.2.5 =
* Fixed: Enable Mastodon Apps check
* Fixed: Fediverse replies were not threaded properly
= 3.2.4 =
* Improved: Inbox validation
= 3.2.3 =
* Fixed: NodeInfo endpoint
* Fixed: (Temporarily) Remove HTML from `summary`, because it seems that Mastodon has issues with it
* Improved: Accessibility for Reply-Context
* Improved: Use `Article` Object-Type as default
= 3.2.2 =
* Fixed: Extra-Fields check
= 3.2.1 =
* Fixed: Use `Excerpt` for Podcast Episodes
= 3.2.0 =
* Added: Support for Seriously Simple Podcasting
* Added: Blog extra fields
* Added: Support "read more" for Activity-Summary
* Added: `Like` and `Announce` (Boost) handler
* Added: Simple Remote-Reply endpoint
* Added: "Stream" Plugin support
* Added: New Fediverse symbol
* Improved: Replace hashtags, urls and mentions in summary with links
* Improved: Hide Bookmarklet if site does not support Blocks
* Fixed: Link detection for extra fields when spaces after the link and fix when two links in the content
* Fixed: `Undo` for `Likes` and `Announces`
* Fixed: Show Avatars on `Likes` and `Announces`
* Fixed: Remove proprietary WebFinger resource
* Fixed: Wrong followers URL in "to" attribute of posts
= 3.1.0 =
* Added: `menu_order` to `ap_extrafield` so that user can decide in with order they will be displayed
* Added: Line brakes to user biography
* Added: Blueprint
* Fixed: Changed missing `activitypub_user_description` to `activitypub_description`
* Fixed: Undefined `get_sample_permalink`
* Fixed: Only send Update for previously-published posts
* Improved: Simplified WebFinger code
See full Changelog on [GitHub](https://github.com/Automattic/wordpress-activitypub/blob/trunk/CHANGELOG.md).
== Upgrade Notice ==