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

Accept Follower: Migrate to outbox #1205

Merged
merged 13 commits into from
Jan 27, 2025

Conversation

pfefferle
Copy link
Member

@pfefferle pfefferle commented Jan 23, 2025

This PR adds:

  • Support for adding Activities to the Outbox
  • Use Outbox to send Accept responses to Follow requests

This should also fix https://community.nodebb.org/topic/18518/wordpress-follow-failure

/cc @julianlam

Other information:

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

@pfefferle pfefferle changed the title Follower: Migrate to outbox Accept Follower: Migrate to outbox Jan 23, 2025
@pfefferle pfefferle added the Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary. label Jan 23, 2025
@pfefferle pfefferle self-assigned this Jan 23, 2025
@pfefferle pfefferle requested a review from a team January 27, 2025 12:17
@pfefferle pfefferle marked this pull request as ready for review January 27, 2025 12:21
includes/functions.php Show resolved Hide resolved
includes/functions.php Show resolved Hide resolved
\Activitypub\is_activity( $activity ),
sprintf( 'Activity type %s should be invalid', isset( $activity['type'] ) ? $activity['type'] : 'null' )
);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's break these out in two separate tests with dataProviders for each Activity type

tests/includes/class-test-functions.php Show resolved Hide resolved
includes/handler/class-follow.php Show resolved Hide resolved
@pfefferle pfefferle requested a review from obenland January 27, 2025 14:43
@pfefferle pfefferle merged commit 081b905 into add/outbox-collection Jan 27, 2025
11 checks passed
@pfefferle pfefferle deleted the update/accept-follow branch January 27, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants