Skip to content

Add Arrive outbox handler for check-in activities#2977

Open
pfefferle wants to merge 1 commit intoadd/c2s-supportfrom
add/c2s-arrive-handler
Open

Add Arrive outbox handler for check-in activities#2977
pfefferle wants to merge 1 commit intoadd/c2s-supportfrom
add/c2s-arrive-handler

Conversation

@pfefferle
Copy link
Member

Fixes #

Proposed changes:

  • Add an Arrive outbox handler that creates WordPress posts from C2S check-in activities (e.g. from checkin.swf.pub).
  • The handler synthesizes a Note from the intransitive Arrive activity, creates a post via Posts::create(), and saves location geodata (geo_address, geo_latitude, geo_longitude, geo_public) via the activitypub_outbox_arrive_sent action hook.
  • Fix the outbox controller to fall back to Create when looking up outbox entries, since the Post scheduler wraps new posts in Create activities regardless of the original C2S activity type (e.g. Arrive → Create).

Other information:

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

Testing instructions:

  • Start wp-env with npm run env-start
  • Run npm run env-test -- --filter=test_c2s_arrive — both tests should pass
  • Alternatively, use a C2S client like checkin.swf.pub to POST an Arrive activity to the outbox endpoint and verify a WordPress post is created with geodata meta

Changelog entry

  • Automatically create a changelog entry from the details below.
Changelog Entry Details

Significance

  • Patch

Type

  • Added - for new features

Message

Add support for check-in activities posted via compatible apps.

Create WordPress posts from C2S Arrive activities (check-ins).
The handler synthesizes a Note from the intransitive Arrive data,
creates a post via Posts::create(), and saves location geodata
(geo_address, geo_latitude, geo_longitude) via the
activitypub_outbox_arrive_sent action hook.

Also fixes the outbox controller to fall back to Create when
looking up outbox entries, since the Post scheduler wraps new
posts in Create activities regardless of the original C2S type.
@pfefferle pfefferle added the Enhancement New feature or request label Feb 25, 2026
@pfefferle pfefferle self-assigned this Feb 25, 2026
@pfefferle pfefferle added the Enhancement New feature or request label Feb 25, 2026
@pfefferle pfefferle requested a review from a team February 25, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant