Skip to content

Support fetching remote/federated posts via status endpoint#294

Merged
akirk merged 1 commit intomainfrom
fix/remote-status-lookup
Apr 9, 2026
Merged

Support fetching remote/federated posts via status endpoint#294
akirk merged 1 commit intomainfrom
fix/remote-status-lookup

Conversation

@akirk
Copy link
Copy Markdown
Owner

@akirk akirk commented Apr 9, 2026

Summary

  • Handle URL-remapped IDs in api_get_status so that remote/federated posts can be looked up via GET /api/v1/statuses/:id
  • Moves reblog ID remapping earlier in the flow and adds a mastodon_api_status_by_url filter path for posts that map to remote URLs
  • Returns 404 if the remote lookup yields no result

Test plan

  • Fetch a local status by ID and verify it still works as before
  • Fetch a remote/federated status by its remapped ID and verify it returns the correct status
  • Fetch a non-existent ID and verify a 404 is returned

Handle URL-remapped IDs in api_get_status so that remote/federated
posts can be looked up via GET /api/v1/statuses/:id even when they
don't exist as full local WordPress posts.
@akirk akirk merged commit e0ab5ab into main Apr 9, 2026
18 checks passed
@akirk akirk deleted the fix/remote-status-lookup branch April 9, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant