Skip to content

Conversation

@pfefferle
Copy link
Member

Proposed changes:

  • Always use query param format (?author=ID) for actor IDs instead of permalink format
  • Show movedTo pointing to new ID when actor is accessed via old permalink URL
  • Send Move activities to all known inboxes (not just followers) during migration
  • Add migration for both blog actor and user actors to send Move activities
  • Use ACTIVITYPUB_CONTENT_VISIBILITY_PRIVATE for all Move activities

Other information:

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

Testing instructions:

  • Set activitypub_use_permalink_as_id_for_blog option to true for blog actor testing
  • Set activitypub_use_permalink_as_id user option to '1' for user actor testing
  • Lower activitypub_db_version option to trigger migration (e.g., wp option update activitypub_db_version '7.5.0')
  • Visit the site to trigger migration
  • Check outbox for Move activities
  • Access actor via old permalink URL and verify movedTo points to new query param ID

Changelog entry

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

Significance

  • Patch
  • Minor
  • Major

Type

  • Added - for new features
  • Changed - for changes in existing functionality
  • Deprecated - for soon-to-be removed features
  • Removed - for now removed features
  • Fixed - for any bug fixes
  • Security - in case of vulnerabilities

Message

Migrate actor IDs from permalink format to query param format with Move activity support.

Change actor IDs to always use the query param format (?author=ID).
When accessed via the old permalink URL, show movedTo pointing to
the new ID. Add migration to send Move activity for blog user.
Eliminated the call to set_to with Remote_Actors::get_inboxes() when creating migration activities. This may be to adjust how recipients are handled or to prevent unnecessary inbox notifications.
Updated the 'Move' activity to set actor, origin, and object fields to the old blog ID format using the preferred username, ensuring correct identification during migration.
Updated calls to Outbox::add to use the add_to_outbox function with an added null parameter. This change likely reflects a refactor or update in the outbox handling API.
Changed the default value of the $offset parameter from 0 to 5 in the schedule_outbox_activity_for_federation method to adjust the scheduling behavior.
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.

2 participants