Fix federation payload for activities without proper metadata #48
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: McPringle/fitpub#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/remote-activity-unknown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes how activities are federated to remote instances.
Previously, federated activities could appear as an unknown activity with no proper name, while activity metadata ended up in the content body instead of being attached as structured activity data. As a result, remote instances were missing important activity information such as metadata and route preview.
This change ensures that activities are federated with the expected structure so remote instances can recognize them correctly and render them with their associated metadata.
What changed
Result
Federated activities are now recognized correctly by remote servers, show a proper name instead of an unknown activity, keep their metadata in the right place, and expose route preview data as expected.
Testing
Important
When this PR is merged, #42 is obsolete. If #42 was merged before, this PR can be merged on top smoothly.