Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outbox Collection #593

Merged
merged 136 commits into from
Jan 31, 2025
Merged

Outbox Collection #593

merged 136 commits into from
Jan 31, 2025

Conversation

pfefferle
Copy link
Member

@pfefferle pfefferle commented Dec 8, 2023

Working on an Outbox Collection, to better support Blogs with lots of Followers, Retries and Activities other than Post.

/cc @mediaformat @Menrath @ruru4143 @akirk @mattwiebe

Proposed changes:

  • Add Outbox
  • Scheduler, that handles unpublished Outbox items in chunks
  • Implement Retry
  • Actions to push data into the Outbox

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

  • Go to '..'

Fixes #961 #1203

@pfefferle pfefferle added this to the 2.0.0 milestone Dec 13, 2023
@pfefferle pfefferle removed this from the 2.0.0 milestone Dec 14, 2023
includes/functions.php Outdated Show resolved Hide resolved
pfefferle and others added 7 commits January 28, 2025 10:24
* Outbox: Correctly handle attachments

* Update function docs to reflect reality

* Aside: Add some context as to why this callback is necessary
* Outbox: Fix deletes

* Always send deletes
* Outbox: Basic rescheduling

* add tests

* Add tests

* reuse ActivityPub_Outbox_TestCase class

* fix phpcs issues

* update tests

* fix tests

* fix tests

* debug

* debug

* types?

* add missing hook

props @obenland

* simpified code

props @obenland

* remove unused namespace definitions

---------

Co-authored-by: Konstantin Obenland <obenland@gmx.de>
@pfefferle pfefferle marked this pull request as ready for review January 28, 2025 14:56
obenland and others added 11 commits January 28, 2025 09:17
* Outbox: Make post type non-hierarchical

* Default to title and content

It helps when setting the post type to public to debug something
* Outbox: Account for transformer errors

* Remove debug
* Outbox: Account for invalid json

* http it is!

* Remove unnecessary init
* Outbox: Fix profile updates

This will transform the stored JSON into the correct object!

* phpcs fix
* Outbox: Federate blog user updates

* Add right hooks and complete unit tests
* Outbox: Show Outbox processing in Stream

* Make sure we keep them all and not just the first one

* Switch to new action

* Keep track of inbox URL
@pfefferle pfefferle merged commit 708c592 into trunk Jan 31, 2025
11 checks passed
@pfefferle pfefferle deleted the add/outbox-collection branch January 31, 2025 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Collections [Focus] Compatibility Ensuring the plugin plays well with other plugins [Type] Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleted WP post remains undeleted on Mastodon
5 participants