Skip to content
Open
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
27ce87b
Add support for ActivityPub object post type
pfefferle Oct 13, 2025
fd3661e
Add ActivityPub content sanitizer and update usage
pfefferle Oct 13, 2025
5707420
Add HTML to blocks conversion and refactor sanitization
pfefferle Oct 13, 2025
630aec6
Remove get_node_attributes method and inline list attribute
pfefferle Oct 13, 2025
ca3305e
Rename html_to_blocks to convert_from_html in Blocks
pfefferle Oct 13, 2025
5ab729b
Apply suggestion from @Copilot
pfefferle Oct 13, 2025
e302e93
Apply suggestion from @Copilot
pfefferle Oct 13, 2025
955921c
Apply suggestion from @Copilot
pfefferle Oct 13, 2025
d0fa8e1
Add tests for content sanitization and block conversion
pfefferle Oct 13, 2025
7d6004e
Add tests for Create handler object sanitization and edge cases
pfefferle Oct 13, 2025
7466883
Add unit tests for Objects collection class
pfefferle Oct 13, 2025
b61302e
Add changelog
matticbot Oct 13, 2025
a400925
Refactor Update handler methods for clarity
pfefferle Oct 13, 2025
859b33b
Update @covers annotation to handle_actor_update
pfefferle Oct 13, 2025
9f43130
Update post type labels from 'Post' to 'Object'
pfefferle Oct 13, 2025
67932d8
Add missing newline after use statements
pfefferle Oct 13, 2025
7f07d36
Remove HTML to blocks conversion logic
pfefferle Oct 13, 2025
02528e1
Rename Objects collection to Posts throughout codebase
pfefferle Oct 13, 2025
f59a8f4
Fix comments and return types
obenland Oct 13, 2025
64d92ce
Rename create_object to create_post in Create handler
pfefferle Oct 13, 2025
94a9cc7
Update @covers annotation in test for create_post
pfefferle Oct 13, 2025
406d34e
Register post meta for remote actor ID
pfefferle Oct 13, 2025
3b345a0
Add 'ap_object_type' taxonomy to post type
pfefferle Oct 13, 2025
5dbbd42
Remove custom labels from taxonomy registration
pfefferle Oct 13, 2025
b5adfa3
Remove custom rewrite slugs from taxonomy registration
pfefferle Oct 13, 2025
f6dd350
Rename handle_actor_update to update_actor
pfefferle Oct 13, 2025
f784eb1
Rename test method and update covered function
pfefferle Oct 13, 2025
f9fc961
Refactor update handler result and docblock types
pfefferle Oct 13, 2025
a367a97
Improve error handling in Create and Update handlers
pfefferle Oct 13, 2025
c86fb3c
Refactor default error handling in handle_object_update
pfefferle Oct 13, 2025
ea44b16
Handle missing actor data in update handler
pfefferle Oct 13, 2025
bd60160
Add Attachments processor class with comprehensive tests
obenland Oct 13, 2025
737aafd
Add filter for extensible attachment markup generation
obenland Oct 13, 2025
ce7d197
Refactor attachment processing calls
obenland Oct 13, 2025
b76da8c
Add unit tests for Posts collection attachment handling
obenland Oct 13, 2025
8502af9
Update Classic Editor support comment
obenland Oct 13, 2025
becb0b9
Refactor test image copy logic in mock download functions
obenland Oct 13, 2025
15866dc
Simplify array formatting in test attachments
obenland Oct 13, 2025
298f313
Fix attachment author handling for different contexts
obenland Oct 13, 2025
2d949b5
Simplify Attachments API by removing base_path parameter
obenland Oct 13, 2025
4ff81f7
Fix array comparison in has_updated_attachments
obenland Oct 13, 2025
a06dbc6
Move WordPress function checks earlier in save_attachment
pfefferle Oct 15, 2025
6f0790b
Merge branch 'trunk' into attachment-handling
pfefferle Oct 16, 2025
c9c821b
Merge branch 'trunk' into attachment-handling
pfefferle Oct 17, 2025
b431811
Fix incorrect post type registration in test setup
pfefferle Oct 17, 2025
0ee25a2
Experiment with "manually" inherited post status
obenland Oct 22, 2025
fafe402
Merge trunk into attachment-handling branch
obenland Oct 22, 2025
e59c0f1
Add changelog
matticbot Oct 22, 2025
596bcfc
Hide ActivityPub attachments from Media Library
obenland Oct 22, 2025
8c4469c
Delete all attachments when ap_post is deleted
obenland Oct 22, 2025
3ae2d88
Fix race condition in attachment processing
obenland Oct 22, 2025
2e0bb8a
Fix get_attached_media() for ActivityPub posts
obenland Oct 22, 2025
a0b5d0c
Revert "Fix race condition in attachment processing"
obenland Oct 22, 2025
a94646c
Fix failing tests after merge with trunk
obenland Oct 22, 2025
f640496
Add inline image processing for ActivityPub imports
obenland Oct 22, 2025
d66dd90
Fix whitespace
obenland Oct 22, 2025
6692c5a
Merge branch 'trunk' into attachment-handling
obenland Oct 23, 2025
e8cebe8
Rename Attachments::process() to Attachments::import()
obenland Oct 23, 2025
cdc0c43
Rename process_inline_images to import_inline_images
obenland Oct 23, 2025
3da9b0a
Refactor meta_query retrieval in Attachments class
obenland Oct 23, 2025
972f57c
Do not federate imports (#2372)
pfefferle Oct 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/2314-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Add unified attachment processor for handling ActivityPub media imports from both remote URLs and local files, with automatic media block generation and Classic Editor support.
1 change: 1 addition & 0 deletions activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function rest_init() {
*/
function plugin_init() {
\add_action( 'init', array( __NAMESPACE__ . '\Activitypub', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Attachments', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Comment', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Dispatcher', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Embed', 'init' ) );
Expand Down
Loading