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

Update Dispatcher to use Outbox #1186

Merged
merged 37 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
00a5e2e
rename dispatcher
pfefferle Jan 20, 2025
f224701
Simple dispatcher based on the Outbox-Collection
pfefferle Jan 20, 2025
318a2fd
update changelog
pfefferle Jan 20, 2025
dcc68d3
mark post as `publish` after federation id done
pfefferle Jan 20, 2025
f04c682
show only published activities
pfefferle Jan 20, 2025
3f4672b
fix missing rename
pfefferle Jan 20, 2025
5c6446d
use pending instead of draft
pfefferle Jan 20, 2025
7f28a61
do not check for post_status
pfefferle Jan 21, 2025
a1ce4e8
fix tests
pfefferle Jan 21, 2025
98bbfa1
Send `Update`s to Blog Actor in dual mode
mattwiebe Jan 21, 2025
d83147b
Update includes/class-dispatcher.php
pfefferle Jan 22, 2025
bc9e6af
Update includes/class-dispatcher.php
pfefferle Jan 22, 2025
21d8e46
Update includes/rest/class-outbox-controller.php
pfefferle Jan 22, 2025
06edf3b
Check if Activity should be sent to followers
pfefferle Jan 22, 2025
7957a27
the unique check will be done `send_activity_to_followers`
pfefferle Jan 22, 2025
212c02f
fix tests
pfefferle Jan 22, 2025
361d891
fix PHPCS
pfefferle Jan 22, 2025
978e5b5
move scheduler behind action
pfefferle Jan 22, 2025
72d2fd6
Add `private` visibility
pfefferle Jan 22, 2025
99c1389
Add Announce activity
pfefferle Jan 22, 2025
6707f87
Announce the full object!
pfefferle Jan 22, 2025
243184b
fix indent
pfefferle Jan 22, 2025
17d3b37
Update includes/transformer/class-base.php
pfefferle Jan 22, 2025
0722b12
add doc-block
pfefferle Jan 22, 2025
14a372d
only boost content not profile updates
pfefferle Jan 22, 2025
70266cf
Also handle `Delete` when bundling Blog Actor inboxes
mattwiebe Jan 22, 2025
5b82940
Update docs
obenland Jan 22, 2025
6f87326
Avoid activitypub_actor_mode bleeding into other tests
obenland Jan 22, 2025
8c77845
Fix comments tests
obenland Jan 22, 2025
8332017
Account for inheritance in Activity objects
obenland Jan 22, 2025
3382d7f
Move hook to the right place
obenland Jan 22, 2025
527bc09
Merge branch 'add/outbox-collection' into update/dispatcher
pfefferle Jan 23, 2025
eb9bef6
fix typo!
pfefferle Jan 23, 2025
80160d4
trigger scheduler
pfefferle Jan 23, 2025
986f688
Merge branch 'add/outbox-collection' into update/dispatcher
pfefferle Jan 23, 2025
7ecc90c
Merge branch 'add/outbox-collection' into update/dispatcher
pfefferle Jan 23, 2025
0ab2883
Fix tests
obenland Jan 23, 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
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Support for WPML post locale

### Added

* Outbox queue

### Changed

* Rewrite the current dispatcher system, to use the Outbox instead of the Scheduler.

### Removed

* Built-in support for nodeinfo2. Use the [NodeInfo plugin](https://wordpress.org/plugins/nodeinfo/) instead.
Expand All @@ -42,7 +50,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Outbox queue
* Comment counts get updated when the plugin is activated/deactivated/deleted
* Added a filter to make custom comment types manageable in WP.com Calypso

Expand Down
2 changes: 1 addition & 1 deletion activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function rest_init() {
function plugin_init() {
\add_action( 'init', array( __NAMESPACE__ . '\Migration', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Activitypub', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Activity_Dispatcher', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Dispatcher', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Handler', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Admin', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Hashtag', 'init' ) );
Expand Down
348 changes: 0 additions & 348 deletions includes/class-activity-dispatcher.php

This file was deleted.

2 changes: 1 addition & 1 deletion includes/class-activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private static function register_post_types() {
'sanitize_callback' => function ( $value ) {
$schema = array(
'type' => 'string',
'enum' => array( ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC, ACTIVITYPUB_CONTENT_VISIBILITY_QUIET_PUBLIC, ACTIVITYPUB_CONTENT_VISIBILITY_LOCAL ),
'enum' => array( ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC, ACTIVITYPUB_CONTENT_VISIBILITY_QUIET_PUBLIC, ACTIVITYPUB_CONTENT_VISIBILITY_PRIVATE, ACTIVITYPUB_CONTENT_VISIBILITY_LOCAL ),
'default' => ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC,
);

Expand Down
Loading
Loading